<?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: Need help to get the correct expression in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412387#M560716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much. it solved my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2013 10:44:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-02T10:44:55Z</dc:date>
    <item>
      <title>Need help to get the correct expression in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412385#M560714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two problems below, which I really, really need help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have a data with these fields: Region, Status_Fg (could be A, D, I) and Wave_Id&lt;/P&gt;&lt;P&gt;I have to count the number of active Status_Fg (Status_Fg = A) per Region and put them in a pie chart. So, I have my Region as dimension. For expression, I tried this: if(STATUS_FG='A',Count(DISTINCT WAVE_ID)), I need to put in DISTINCT, because the wave_id in my data is not unique, but I only need to count the unique wave_id. But this is not working. I get 'no data to display'. But I know that there are wave with status_fg = A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have these data: Region, Round_id, parent_round_id.&lt;/P&gt;&lt;P&gt;I need to have a bar chart with the % of rounds copied to the # of rounds created per region. Copied rounds are those rounds where the parent_round_id is not null or not equal to zero. So, i have Region as dimension. then i have two expressions. One is just to count all the rounds, so I put in Count(DISTINCT round_id). Second is to count only the copied rounds, so I put in if(parent_round_id&amp;lt;&amp;gt;0 or not isnull(parent_round_id), Count(DISTINCT round_id)). But this is not working, Im getting the same count number as all the rounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 07:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412385#M560714</guid>
      <dc:creator />
      <dc:date>2013-04-02T07:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get the correct expression in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412386#M560715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer of your first question is below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;STATUS_FG={"A"}&amp;gt;} Distinct WAVE_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer to your second question is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(if(parent_round_id&amp;lt;&amp;gt;0 or not isnull(parent_round_id),round_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 08:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412386#M560715</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-02T08:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get the correct expression in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412387#M560716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much. it solved my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 10:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-to-get-the-correct-expression-in-a-chart/m-p/412387#M560716</guid>
      <dc:creator />
      <dc:date>2013-04-02T10:44:55Z</dc:date>
    </item>
  </channel>
</rss>

