<?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: Problem when filtering calculated dimensions qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112044#M7705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're not ignoring the date fields in the Max function. Try:&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;Sum({&amp;lt;DATUM_ID={$(=Max(&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date, Year, Month, Day&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;DATUM_ID))}, Date, Year, Month, Day&amp;gt;}KPI_VALUE)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;DATUM_ID={$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date, Year, Month, Day&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;DATUM_ID-1))}, Date, Year, Month, Day&amp;gt;}KPI_VALUE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 16:14:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-09-10T16:14:06Z</dc:date>
    <item>
      <title>Problem when filtering calculated dimensions qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112043#M7704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have found a very weird behavior in Qlik Sense. I have just finished loading a set of variables from an excel file, and everything was working wonders until I try to apply a filter for the field "Day". Instead of the field "Day", I'm using a master dimension with the formula =$(dDay_Field) which contains "Dual('Day ' &amp;amp; Day, Day)", and it works in all the charts as expected without filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue comes when I try to filter by day a chart that is comparing today vs yesterday. I'm ignoring the day dimension and calculating everything in the set analysis, but I believe that Qlik doesn't recognize my dimension as day, and it doesn't ignore it, giving me the value for today for every day that I select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formulas are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master Dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field: =$(dDay_Field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name: Day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dDay_Field = Dual('Day ' &amp;amp; Day, Day)&lt;/P&gt;&lt;P&gt;Chart formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;DATUM_ID={$(=Max(DATUM_ID))}, Date, Year, Month, &lt;STRONG&gt;Day&lt;/STRONG&gt;&amp;gt;}KPI_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;DATUM_ID={$(=Max(DATUM_ID-1))}, Date, Year, Month, &lt;STRONG&gt;Day&lt;/STRONG&gt;&amp;gt;}KPI_VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone see a possible solution for this problem? Is there a special syntax for calculated dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Pedro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited to clarify the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112043#M7704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-10T15:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when filtering calculated dimensions qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112044#M7705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're not ignoring the date fields in the Max function. Try:&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;Sum({&amp;lt;DATUM_ID={$(=Max(&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date, Year, Month, Day&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;DATUM_ID))}, Date, Year, Month, Day&amp;gt;}KPI_VALUE)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;DATUM_ID={$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date, Year, Month, Day&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;DATUM_ID-1))}, Date, Year, Month, Day&amp;gt;}KPI_VALUE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112044#M7705</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-10T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when filtering calculated dimensions qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112045#M7706</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/96544"&gt;gwassenaar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. That is the thing, I'm not ignoring the date fields in the Max function because I want the set analysis to be sensitive to date changes, but not the model for the KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I select Date 2018-10-31&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I want the set analysis to calculate&lt;UL&gt;&lt;LI&gt;Today's KPI_VALUE for DATUM_ID=20181031&lt;/LI&gt;&lt;LI&gt;Yesterday's KPI_VALUE for DATUM_ID=20181030.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I don't want the model for the KPI to change, or it would always give me 0 for yesterday's function. My problem is that Qlik is still considering the Day field even when I ignore it in the formula here:&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;DATUM_ID={$(=Max(DATUM_ID-1))}, Date, Year, Month, &lt;STRONG&gt;Day&lt;/STRONG&gt;&amp;gt;} KPI_VALUE)&lt;/SPAN&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question would be: Is there a way to ignore a calculated dimension in a formula when using a master dimension? Is there any special syntax to ignore the calculated dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Pedro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 07:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-when-filtering-calculated-dimensions-qlik-sense/m-p/112045#M7706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-11T07:32:22Z</dc:date>
    </item>
  </channel>
</rss>

