<?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: Master Dimension - IF Statement logic... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825624#M67862</link>
    <description>&lt;P&gt;Hi - Thanks for your help.&lt;/P&gt;&lt;P&gt;I am using Qlik Sense Not Qlik View.&lt;/P&gt;&lt;P&gt;I did the following :&lt;/P&gt;&lt;P&gt;1. Created a field in my main table titled "ABSTATUS" - with no values.&lt;/P&gt;&lt;P&gt;2. I changed the formula to the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aggr(&lt;/SPAN&gt;&lt;STRONG&gt;=IF(pomg='Y','Revised',IF(DCIndicator='X',IF([LRDate.autoCalendar.Date]&amp;gt;$(vNDDate),'Past Due','On Time'),IF($(vNDate)&amp;lt;Today(),'OO - Past Due','OO'))), ABSTATUS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Still does not work and now all values of mdStatus are set to 'Revised'.&lt;/P&gt;&lt;P&gt;Thoughts ? I feel I am close! Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 19:59:14 GMT</pubDate>
    <dc:creator>jerryr125</dc:creator>
    <dc:date>2021-07-29T19:59:14Z</dc:date>
    <item>
      <title>Master Dimension - IF Statement logic...</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825585#M67852</link>
      <description>&lt;P&gt;Hi -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the following if statement for a master dimension (mdStatus):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=IF(pomg='Y','Revised',IF(DCIndicator='X',IF([LRDate.autoCalendar.Date]&amp;gt;$(vNDDate),'Past Due','On Time'),IF($(vNDate)&amp;lt;Today(),'OO - Past Due','OO')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Therefore, the final values for the master dimension is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Revised&lt;/LI&gt;&lt;LI&gt;Past Due&lt;/LI&gt;&lt;LI&gt;On Time&lt;/LI&gt;&lt;LI&gt;OO - Past Due&lt;/LI&gt;&lt;LI&gt;OO&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Even though there is no issues in the expression of the IF statement, when it comes to the visualization the filtering and display is inaccurate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if you filter mdStatus on "On Time" the visualizations show both "On Time" and "Past Due".&lt;/P&gt;&lt;P&gt;Any thoughts on why the logics is not functioning?&lt;/P&gt;&lt;P&gt;mdStatus should only have one status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks - Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 17:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825585#M67852</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2021-07-29T17:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Master Dimension - IF Statement logic...</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825600#M67857</link>
      <description>&lt;P&gt;Selections are made only in fields.&amp;nbsp; When using a calculated dimension, there can be some implicit selections made that are not what is intended.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should explicitly declare what field this Dimension should select by wrapping the expression in Aggr(). For example, to make the selections in field ID:&lt;/P&gt;&lt;P&gt;Aggr(&lt;STRONG&gt;=IF(pomg='Y','Revised',IF(DCIndicator='X',IF([LRDate.autoCalendar.Date]&amp;gt;$(vNDDate),'Past Due','On Time'),IF($(vNDate)&amp;lt;Today(),'OO - Past Due','OO'))), ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For more, see&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/2016/01/scoping-selections-with-aggr/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 18:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825600#M67857</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-07-29T18:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Master Dimension - IF Statement logic...</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825624#M67862</link>
      <description>&lt;P&gt;Hi - Thanks for your help.&lt;/P&gt;&lt;P&gt;I am using Qlik Sense Not Qlik View.&lt;/P&gt;&lt;P&gt;I did the following :&lt;/P&gt;&lt;P&gt;1. Created a field in my main table titled "ABSTATUS" - with no values.&lt;/P&gt;&lt;P&gt;2. I changed the formula to the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aggr(&lt;/SPAN&gt;&lt;STRONG&gt;=IF(pomg='Y','Revised',IF(DCIndicator='X',IF([LRDate.autoCalendar.Date]&amp;gt;$(vNDDate),'Past Due','On Time'),IF($(vNDate)&amp;lt;Today(),'OO - Past Due','OO'))), ABSTATUS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Still does not work and now all values of mdStatus are set to 'Revised'.&lt;/P&gt;&lt;P&gt;Thoughts ? I feel I am close! Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 19:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825624#M67862</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2021-07-29T19:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Master Dimension - IF Statement logic...</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825634#M67864</link>
      <description>&lt;P&gt;QlikView and Qlik Sense behave the same in this case.&amp;nbsp; The blog post was written for QlikView, but applies equally to QS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your ABSTATUS field should have values. The idea is you would use this field to select rows in your data. Something like an id field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 21:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1825634#M67864</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-07-29T21:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Master Dimension - IF Statement logic...</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1826185#M67937</link>
      <description>&lt;P&gt;Hi - thank you again for your reply and assistance.&amp;nbsp; All set - I am doing the logic in the load script - works like a charm! thanks - Jerry&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 21:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Dimension-IF-Statement-logic/m-p/1826185#M67937</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2021-08-02T21:11:04Z</dc:date>
    </item>
  </channel>
</rss>

