<?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 Set expression issue into Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028140#M347309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a beginner on QlikView and i would like to do a Month to Day and a Year to day report on QlikView.&lt;/P&gt;&lt;P&gt;To do that i have a table "AsOf", With different data of End of Month and a table "Period" where we can select "YTD" or "MTD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when YTD is selected, i would like just the result of the AsOf, but when "MTD" is selected i would like to have the difference between two AsOf Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF( Period = 'YTD',SUM(STE), IF( Period = 'MTD',SUM(STE) - SUM({$&amp;lt; AsOf = {"=$(=Num(AddMonths(Max(AsOf),-1)))"}&amp;gt;} STE)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check my sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Sébastien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 16:54:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-31T16:54:02Z</dc:date>
    <item>
      <title>Set expression issue into Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028140#M347309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a beginner on QlikView and i would like to do a Month to Day and a Year to day report on QlikView.&lt;/P&gt;&lt;P&gt;To do that i have a table "AsOf", With different data of End of Month and a table "Period" where we can select "YTD" or "MTD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when YTD is selected, i would like just the result of the AsOf, but when "MTD" is selected i would like to have the difference between two AsOf Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF( Period = 'YTD',SUM(STE), IF( Period = 'MTD',SUM(STE) - SUM({$&amp;lt; AsOf = {"=$(=Num(AddMonths(Max(AsOf),-1)))"}&amp;gt;} STE)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check my sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Sébastien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 16:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028140#M347309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-31T16:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression issue into Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028141#M347310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Period = 'YTD', SUM(STE),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Period = 'MTD', SUM(STE) - Sum(TOTAL {$&amp;lt; AsOF = {"$(='&amp;gt;=' &amp;amp; Num(MonthStart(Max(AsOF),-1)) &amp;amp; '&amp;lt;=' &amp;amp; Num(MonthEnd(Max(AsOF),-1)))"}&amp;gt;} STE)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE: You need to be carefully about Upper case and lower case in your file. You used AsO&lt;SPAN style="color: #ff0000;"&gt;f&lt;/SPAN&gt; instea&lt;SPAN style="color: #575757;"&gt;d of &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #575757;"&gt;AsO&lt;/SPAN&gt;F&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028141#M347310</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-31T17:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression issue into Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028142#M347311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AsOf is not AsOF. Use the exact case sensitive field names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF( Period = 'YTD',SUM(STE), IF( Period = 'MTD',SUM(STE) - SUM({$&amp;lt; AsOF = {$(=Num(AddMonths(Max(AsOF),-1)))}&amp;gt;} STE)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-issue-into-Chart/m-p/1028142#M347311</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-31T17:09:49Z</dc:date>
    </item>
  </channel>
</rss>

