<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Content in Tableau Community Forums</title>
    <link>/profile-content.jspa?filterID=contentstatus[published]&amp;targetUser=2571</link>
    <description>Recent content in Tableau Community Forums</description>
    <language>en</language>
    <pubDate>Thu, 17 Jul 2008 21:30:58 GMT</pubDate>
    <generator>Jive Engage 8.0.5.0  (http://jivesoftware.com/products/)</generator>
    <dc:date>2008-07-17T21:30:58Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Limitations of RAWSQL functions?</title>
      <link>https://community.tableau.com/thread/107547</link>
      <description>&lt;!-- [DocumentBodyStart:56afed51-b67b-4278-856c-b5df4dcf8208] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am trying to extract a value based on 2 dimensions: given a list of Condition1, Condition2, Value return Value for Condition1=C1 and every C2.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I want to use the result of this calculation to compute the ratio of Value to this reference value for each condition in Condition2 . I was trying to use RAWSQL functions for that but although the following query works&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;RAWSQL('select avg(%1) from "TableauExtract" where "Condition1"=%2 and "Condition2"=%3',[Value],"C1",[Condition2])&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;it returns the average Value over the full dataset and not by Condition2. It is also throwing an error ( "Firebird database error 335544652: multiple rows in singleton select") when I remove the avg() around %1. Is there anything I am missing here?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Many thanks in advance,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Yann&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:56afed51-b67b-4278-856c-b5df4dcf8208] --&gt;</description>
      <pubDate>Thu, 17 Jul 2008 21:30:58 GMT</pubDate>
      <author>tableaucommunity@tableau.com</author>
      <guid>https://community.tableau.com/thread/107547</guid>
      <dc:date>2008-07-17T21:30:58Z</dc:date>
      <clearspace:dateToText>10 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

