<?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: Help with correcting my expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627427#M1090203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if understood your issue. But, it seems fine to me. When you don't select any months, all three month values are displayed, when select a partiluar month the corresponding value is displayed. Take a list box for Days field and see the associated data behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 06:00:41 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-05-26T06:00:41Z</dc:date>
    <item>
      <title>Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627426#M1090202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in a dire state right now been busting my brain to get this simple expression done right. Consider this case :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a Country, my tDSO field displays the data correctly as per image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59512" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/59512_pastedImage_0.png" style="width: 620px; height: 160px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same also resulted the correct data when a Country and PostingYear are selected as per image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59526" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/59526_pastedImage_2.png" style="width: 620px; height: 161px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see from both images, the data displayed for the particular country up untill 2014 - Apr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select Country - PostingYear and PostingMonth say Apr, the data in tDSO column dissapeared as per image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59527" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/59527_pastedImage_3.png" style="width: 620px; height: 161px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really weird because no matter how I look at it logically the expression is correct. The expression for the tDSO column is as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(tAROpenBal &amp;gt;= tRevUsed and tARCloseBal &amp;gt; 0&lt;BR /&gt; ,Days&lt;BR /&gt; ,if(tARCloseBal &amp;lt; tRevUsed &lt;BR /&gt; ,(tAROpenBal / tRevUsed * Days)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached also is a file that I'm currently working on for your kind review.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance guys. Hope to hear from you all soon &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 05:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627426#M1090202</guid>
      <dc:creator />
      <dc:date>2014-05-26T05:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627427#M1090203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if understood your issue. But, it seems fine to me. When you don't select any months, all three month values are displayed, when select a partiluar month the corresponding value is displayed. Take a list box for Days field and see the associated data behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627427#M1090203</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-26T06:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627428#M1090204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the tDSO field should get the Days value corresponding to its row. Now that you mentioned it, yes it seems that the Days in my expression was evaluated based on the selected Month. Is there anyway for me to alter my expression so that the Days value is taken based on the value of its corresponding row in the pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your kind attention. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627428#M1090204</guid>
      <dc:creator />
      <dc:date>2014-05-26T06:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627429#M1090205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;didn't really understood the problem &lt;/P&gt;&lt;P&gt;if you select april 2014 then you only see result to that month &lt;/P&gt;&lt;P&gt;what is the problem with this&lt;/P&gt;&lt;P&gt;this is the basic way qlikview works &lt;/P&gt;&lt;P&gt;what do you looks to achieve in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627429#M1090205</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-05-26T06:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627430#M1090206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is that the tDSO field should get the Days value corresponding to its row. In your opinion is there anyway for me to alter my expression so that the Days value is taken based on the value of its corresponding row in the pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(tAROpenBal &amp;gt;= tRevUsed and tARCloseBal &amp;gt; 0&lt;BR /&gt; ,Days &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;&amp;lt;-- Days should correspond to its row in the table chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; ,if(tARCloseBal &amp;lt; tRevUsed &lt;BR /&gt; ,(tAROpenBal / tRevUsed * Days)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your kind attention. &lt;SPAN class="emoticon-inline emoticon_grin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627430#M1090206</guid>
      <dc:creator />
      <dc:date>2014-05-26T06:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627431#M1090207</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;Use Days as expression instead of Dimension.&amp;nbsp; Please find attached file for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627431#M1090207</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-05-26T06:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627432#M1090208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you kind attention. The expression works! But can you explain to me I am kinda blurry as to what was that causes the tDSO expression not working when I'm using Days as a dimension when it clearly displays the Days (if as dimension) regardless of what Month/Year I selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you for your kind attention and not to forget tresesco and Liron too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627432#M1090208</guid>
      <dc:creator />
      <dc:date>2014-05-26T06:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with correcting my expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627433#M1090209</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;When you use Days in Dimension, it filters the Days based on the selection, the same when you use it in expression and exclude the selection by using Set Analysis this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-correcting-my-expression/m-p/627433#M1090209</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-05-26T06:22:01Z</dc:date>
    </item>
  </channel>
</rss>

