<?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 IF statement with two measures one with set analysis other without it in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549224#M39557</link>
    <description>&lt;P&gt;When I write this code in measure without Else Condition:&lt;/P&gt;&lt;P&gt;if(vDate=4,&lt;BR /&gt;pick(vEarning,&lt;BR /&gt;Sum({&amp;lt;ProdWorkDate={"&amp;gt;=$(=WeekStart(Max(ProdWorkDate)))&amp;lt;=$(=Max(ProdWorkDate))"}&amp;gt;} Wages)))&lt;/P&gt;&lt;P&gt;Code With Else Condition of Sum(Wages)&lt;/P&gt;&lt;P&gt;if(vDate=4,&lt;BR /&gt;pick(vEarning,&lt;BR /&gt;Sum({&amp;lt;ProdWorkDate={"&amp;gt;=$(=WeekStart(Max(ProdWorkDate)))&amp;lt;=$(=Max(ProdWorkDate))"}&amp;gt;} Wages)),Sum(Wages))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Without Else Condition" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6769i97A42DB5BCA66350/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Without Else Condition" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Without Else Condition&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With Else Condition" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6770i75A7D3EDDEFFB873/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="With Else Condition" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With Else Condition&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to know why is qlik showing all the dates when i put something in else condtion&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 13:41:53 GMT</pubDate>
    <dc:creator>Pragun</dc:creator>
    <dc:date>2019-02-26T13:41:53Z</dc:date>
    <item>
      <title>IF statement with two measures one with set analysis other without it</title>
      <link>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549224#M39557</link>
      <description>&lt;P&gt;When I write this code in measure without Else Condition:&lt;/P&gt;&lt;P&gt;if(vDate=4,&lt;BR /&gt;pick(vEarning,&lt;BR /&gt;Sum({&amp;lt;ProdWorkDate={"&amp;gt;=$(=WeekStart(Max(ProdWorkDate)))&amp;lt;=$(=Max(ProdWorkDate))"}&amp;gt;} Wages)))&lt;/P&gt;&lt;P&gt;Code With Else Condition of Sum(Wages)&lt;/P&gt;&lt;P&gt;if(vDate=4,&lt;BR /&gt;pick(vEarning,&lt;BR /&gt;Sum({&amp;lt;ProdWorkDate={"&amp;gt;=$(=WeekStart(Max(ProdWorkDate)))&amp;lt;=$(=Max(ProdWorkDate))"}&amp;gt;} Wages)),Sum(Wages))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Without Else Condition" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6769i97A42DB5BCA66350/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Without Else Condition" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Without Else Condition&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With Else Condition" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6770i75A7D3EDDEFFB873/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="With Else Condition" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With Else Condition&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to know why is qlik showing all the dates when i put something in else condtion&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 13:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549224#M39557</guid>
      <dc:creator>Pragun</dc:creator>
      <dc:date>2019-02-26T13:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement with two measures one with set analysis other without it</title>
      <link>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549258#M39560</link>
      <description>&lt;P&gt;May be all you need to do is to uncheck 'Include zero values' under Add-ons -&amp;gt; Data handling&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 14:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549258#M39560</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-26T14:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement with two measures one with set analysis other without it</title>
      <link>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549263#M39562</link>
      <description>Hi, I can do that but the problem is I have date for which I have no data but I still want to show that on UI. Also I am interested in knowing the reason behind this behavior</description>
      <pubDate>Tue, 26 Feb 2019 14:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549263#M39562</guid>
      <dc:creator>Pragun</dc:creator>
      <dc:date>2019-02-26T14:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement with two measures one with set analysis other without it</title>
      <link>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549266#M39563</link>
      <description>&lt;P&gt;I am not sure, but if you are able to share a sample, we can take a look at it to see what might be going on&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 14:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549266#M39563</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-26T14:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement with two measures one with set analysis other without it</title>
      <link>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549268#M39564</link>
      <description>Sorry but I would not be able to share the sample but I discussed this with my colleague he said he also faced the same issue when using 2 measure one with set analysis and other without it</description>
      <pubDate>Tue, 26 Feb 2019 14:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IF-statement-with-two-measures-one-with-set-analysis-other/m-p/1549268#M39564</guid>
      <dc:creator>Pragun</dc:creator>
      <dc:date>2019-02-26T14:29:40Z</dc:date>
    </item>
  </channel>
</rss>

