<?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: YTD expression with if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967981#M468408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;} if(len(trim(TotalCostofActivity))=0,0,TotalCostofActivity)))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Avg({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;} if(len(trim(EXCHANGE_RATE))=0,0,EXCHANGE_RATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 20:10:39 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-09-03T20:10:39Z</dc:date>
    <item>
      <title>YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967980#M468407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to develop a chart for all available activities.&lt;/P&gt;&lt;P&gt;The chart has to display YTD data. The required formula for expression is : (Total Cost of Activity) / (Exchange Rate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, The YTD formula is:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;}TotalCostofActivity))&lt;/P&gt;&lt;P&gt;/ (Avg({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;}EXCHANGE_RATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where, some values of Total cost of Activity are null and some values of Exchange rate are null.&lt;/P&gt;&lt;P&gt;The chart displays wrong total amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you all Please help me to develop dual if condition for the above mentioned YTD formula such that, zero value is displayed if either total cost of activity or exchange rate is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 18:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967980#M468407</guid>
      <dc:creator />
      <dc:date>2015-09-03T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967981#M468408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;} if(len(trim(TotalCostofActivity))=0,0,TotalCostofActivity)))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Avg({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;} if(len(trim(EXCHANGE_RATE))=0,0,EXCHANGE_RATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 20:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967981#M468408</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-03T20:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967982#M468409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try this.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;} if(len(trim(TotalCostofActivity))=0,0,TotalCostofActivity)))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Avg({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;} if(len(trim(EXCHANGE_RATE))=0,0,EXCHANGE_RATE))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 11:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967982#M468409</guid>
      <dc:creator />
      <dc:date>2015-09-07T11:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967983#M468410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a sample qvw, I guess that the values are coming out as null, and not as missing. Then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Alt((sum({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=,Type=&amp;gt;}TotalCostofActivity))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/ (Avg({&amp;lt;YEAR={$(vMaxYear)},Start_Date={"&amp;lt;=$(vMaxDate)"},Month1=&amp;gt;}EXCHANGE_RATE), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 12:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967983#M468410</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-07T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967984#M468411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;have you managed to solve your issue?&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 18:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967984#M468411</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-09T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967985#M468412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still working on the issue.I don't have a solution as yet.&lt;/P&gt;&lt;P&gt; Appreciate all of you for your suggested solutions. &lt;/P&gt;&lt;P&gt;I will update once I find a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967985#M468412</guid>
      <dc:creator />
      <dc:date>2015-09-09T19:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967986#M468413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;give this a try,&lt;/P&gt;&lt;P&gt;create two new variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vYTDStart =Min({&amp;lt;Year={"$(vMaxYear)"}, Month=&amp;gt;} date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vYTDEnd =MAx({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;={"$(vMaxYear)"}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;date&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year=,&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Type=,&lt;/SPAN&gt;Month=, date={'&amp;gt;=$(vYTDStart)&amp;lt;=$(vYTDEnd)'}&amp;gt;}&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TotalCostofActivity&lt;/SPAN&gt;) /&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;/ Avg(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Year=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month=, date={'&amp;gt;=$(vYTDStart)&amp;lt;=$(vYTDEnd)'}&amp;gt;}&lt;/SPAN&gt;EXCHANGE_RATE) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Bon&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 23:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967986#M468413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T23:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: YTD expression with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967987#M468414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Please check these two links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9162"&gt;Set Analysis for certain Point in Time&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9144"&gt;Set Analysis for Rolling Periods&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 23:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-expression-with-if-condition/m-p/967987#M468414</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-09-09T23:26:11Z</dc:date>
    </item>
  </channel>
</rss>

