<?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: Reduce IF expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948880#M980387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code just mean that when PeriodOp is not equal to 'Quarter' then use *. and * in set analysis means select everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 13:41:38 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-24T13:41:38Z</dc:date>
    <item>
      <title>Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948873#M980380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a expression : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;=if(PeriodOp='Quarter',Sum({&amp;lt;Quarter={$(vPriorQuarter)}&amp;gt;} O_TriGiaBan),if(PeriodOp='Month',Sum({&amp;lt;Month={$(vPriorMonth)}&amp;gt;} O_TriGiaBan),If(PeriodOp='Week',Sum({&amp;lt;WeekYear={$(vPriorWeek)}&amp;gt;} O_TriGiaBan))))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna reduce IF expression and replace expression as follow : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({&amp;lt;Quarter={$(vPriorQuarter)} , Month={$(vPriorMonth)} , WeekYear={$(vPriorWeek)} &amp;gt;} O_TriGiaBan)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;It dont work.. Quarter, Month, Week are selection...Please help me...!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 04:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948873#M980380</guid>
      <dc:creator />
      <dc:date>2015-08-19T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948874#M980381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;=Sum({$&amp;lt;Quarter={$(vPriorQuarter)} , Month={$(vPriorMonth)} , WeekYear={$(vPriorWeek)} &amp;gt;} O_TriGiaBan)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 04:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948874#M980381</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-08-19T04:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948875#M980382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the definiation of your variables to these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vPriorQuarter = If(PeriodOp = 'Quarter', yourCurrentExpression, '*')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;vPriorMonth = If(PeriodOp = 'Month', &lt;SPAN style="font-size: 13.3333330154419px;"&gt;yourCurrentExpression&lt;/SPAN&gt;, '*')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;vPriorWeek = If(PeriodOp = 'Week', &lt;SPAN style="font-size: 13.3333330154419px;"&gt;yourCurrentExpression&lt;/SPAN&gt;, '*')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;and then use this expression and see if it works:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;Quarter={$(vPriorQuarter)} , Month={$(vPriorMonth)} , WeekYear={$(vPriorWeek)} &amp;gt;} O_TriGiaBan)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 04:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948875#M980382</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T04:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948876#M980383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It dont work @Gowtham &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 04:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948876#M980383</guid>
      <dc:creator />
      <dc:date>2015-08-19T04:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948877#M980384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need double quotes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum({&amp;lt;Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} &amp;gt;} O_TriGiaBan)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 04:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948877#M980384</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T04:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948878#M980385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum({&amp;lt;Quarter={$(vPriorQuarter)} , Month={$(vPriorMonth)} , WeekYear={$(vPriorWeek)} &amp;gt;} O_TriGiaBan)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum({&amp;lt;Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} &amp;gt;} O_TriGiaBan)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;are correct, too&lt;/STRONG&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Thank you so much @Sunny T&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 05:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948878#M980385</guid>
      <dc:creator />
      <dc:date>2015-08-19T05:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948879#M980386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt; , Can you&amp;nbsp; please make me understand clearly about this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vPriorQuarter = If(PeriodOp = 'Quarter', yourCurrentExpression, '*')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and when I remove '*' , this code cant work ? &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 04:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948879#M980386</guid>
      <dc:creator />
      <dc:date>2015-08-24T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce IF expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948880#M980387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code just mean that when PeriodOp is not equal to 'Quarter' then use *. and * in set analysis means select everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 13:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-IF-expression/m-p/948880#M980387</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-24T13:41:38Z</dc:date>
    </item>
  </channel>
</rss>

