<?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 Help with Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537694#M200961</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;I have a field called STATUS , in which the values are OPEN and CLOSED.&lt;/P&gt;&lt;P&gt;Another Field POSITION : ACTIVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a Bar Chart that shows only OPEN and ACTIVE values by Date , and the another Table which shows ALL values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar Chart :&lt;/P&gt;&lt;P&gt;Dimension : Date&lt;/P&gt;&lt;P&gt;Expression : Count(distinct(if(Status = 'OPEN' and Position = 'ACTIVE',id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table : Staight Table with all columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i am facing is , when a user selects a Date in Bar Chart , he can see Open values in Bar Chart and Both Open and Closed Values in Table , which is fine , but when a user selects CLOSED status from Table , the Bar chart is messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the dimension to if( STATUS='OPEN',Date) which says No data to display when CLOSED is selected in Table which is how i want , but by doing this when user selects Date from Bar chart , the Table is displayed only for OPEN Values because i have enabled in dimension to pick only STATUS = OPEN, which is NOT what i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please let me know how the Bar chart can show data only for OPEN Staus values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 21:38:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-27T21:38:26Z</dc:date>
    <item>
      <title>Help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537694#M200961</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;I have a field called STATUS , in which the values are OPEN and CLOSED.&lt;/P&gt;&lt;P&gt;Another Field POSITION : ACTIVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a Bar Chart that shows only OPEN and ACTIVE values by Date , and the another Table which shows ALL values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar Chart :&lt;/P&gt;&lt;P&gt;Dimension : Date&lt;/P&gt;&lt;P&gt;Expression : Count(distinct(if(Status = 'OPEN' and Position = 'ACTIVE',id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table : Staight Table with all columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i am facing is , when a user selects a Date in Bar Chart , he can see Open values in Bar Chart and Both Open and Closed Values in Table , which is fine , but when a user selects CLOSED status from Table , the Bar chart is messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the dimension to if( STATUS='OPEN',Date) which says No data to display when CLOSED is selected in Table which is how i want , but by doing this when user selects Date from Bar chart , the Table is displayed only for OPEN Values because i have enabled in dimension to pick only STATUS = OPEN, which is NOT what i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please let me know how the Bar chart can show data only for OPEN Staus values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 21:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537694#M200961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T21:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537695#M200962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to replace your IF formula with Set Analysis and override user selections on the fields STATUS and POSITION:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count(&amp;nbsp;&amp;nbsp; {&amp;lt;Status = {OPEN}, Position = {ACTIVE} &amp;gt;}&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;distinct&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This way, your expression will remain correct even if the user selects Status="CLOSED"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 21:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537695#M200962</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-08-27T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537696#M200963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression i am using currently is calculating percentage , for simplicity i have given in if statement .. below is the exact expression i am using which does not seem to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count((&amp;lt;STATUS = {OPEN},POSITION={ACTIVE}&amp;gt;}distinct( ID )/&lt;/P&gt;&lt;P&gt;Count({&amp;lt;STATUS = {OPEN},POSITION={ACTIVE}&amp;gt;}TOTAL&amp;lt;Date&amp;gt;distinct ( id))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 00:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537696#M200963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T00:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537697#M200964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression should be this:&lt;/P&gt;&lt;P&gt;Count(&amp;lt;STATUS = {'OPEN'},POSITION={'ACTIVE'}&amp;gt;} Distinct ID )/&lt;/P&gt;&lt;P&gt;Count({&amp;lt;STATUS = {'OPEN'},POSITION={'ACTIVE'}&amp;gt;} TOTAL&amp;lt;Date&amp;gt; Distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 03:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression/m-p/537697#M200964</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-08-28T03:41:41Z</dc:date>
    </item>
  </channel>
</rss>

