<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using expressions and conditional dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486104#M1140740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicole's set analysis looks correct, but if you are still intimidated by set analysis you can use a simple IF, THEN, ELSE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Time_ID =0,1,0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ______&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Time_ID&amp;gt;0,1,0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ______&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 19:09:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-05T19:09:01Z</dc:date>
    <item>
      <title>Using expressions and conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486102#M1140738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new to expressions but very proficient with writing SQL. I am having slight problems translating simple SQL queries to expressions in qlikview. Currently i'm trying to figure out the following. Also anyone can tell me what is the difference between "conditional dimension" &amp;amp; "expressions".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that from a single dimension table, I simply want to translate it to a bar chart showing these 2 below, how do I go about this, This seems very simple but I am learning this concept, thx in advance! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Query1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;select count(*) from dim_time&lt;/P&gt;&lt;P&gt;where time_id = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Query2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select count(*) from dim_time&lt;/P&gt;&lt;P&gt;where time_id &amp;gt; 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Dim_time table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIME_ID&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;21&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;1234&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;67&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 09:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486102#M1140738</guid>
      <dc:creator />
      <dc:date>2013-09-05T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions and conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486103#M1140739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like to think about dimensions and expressions as being the x and y axes on a bar chart.&amp;nbsp; Dimensions go across the x-axis (the buckets), and expressions are the calculation of a value for how large the bar will be (how far it goes up the y-axis).&amp;nbsp; You can put conditions on dimensions to display the top 10, show a total bar, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a chart with your data is seems like you want your Dimension to be TIME_ID and your Expression to be count({&amp;lt;TIME_ID={0}&amp;gt;}TIME_ID) for Query1 and count({&amp;lt;TIME_ID={'&amp;gt;0'}&amp;gt;}TIME_ID) for Query 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 17:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486103#M1140739</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-09-05T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions and conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486104#M1140740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicole's set analysis looks correct, but if you are still intimidated by set analysis you can use a simple IF, THEN, ELSE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Time_ID =0,1,0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ______&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Time_ID&amp;gt;0,1,0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ______&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 19:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486104#M1140740</guid>
      <dc:creator />
      <dc:date>2013-09-05T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions and conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486105#M1140741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Set Analysis is fully correct. Talking about the concept of Condicional Dimension and Expressions:&lt;/P&gt;&lt;P&gt;Expression is what you wanna see and the dimension is by what. The condicional dimension is when you don't want your dimension be the same in a chart, for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-and-conditional-dimension/m-p/486105#M1140741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-06T12:34:08Z</dc:date>
    </item>
  </channel>
</rss>

