<?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: Two date selector for the fact table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487958#M101602</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154293"&gt;@adecora&lt;/a&gt;&amp;nbsp; I would not suggest to use Island table as they are not good for performance point of view. You may need a common date calendar which can be linked to both the Dates using flag. You can then utilise that flag in measure to have flavour of both the dates. Checkout below link as an example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Create-a-common-Calendar/m-p/2064060#M700" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Create-a-common-Calendar/m-p/2064060#M700&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 15:19:43 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-10-18T15:19:43Z</dc:date>
    <item>
      <title>Two date selector for the fact table</title>
      <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487893#M101591</link>
      <description>&lt;P&gt;Hello, I need to create two different date selectors for the same fact table, one in charge os actual sales and the other one for select comparable sales. I was thinking on the following approach where I get three island tables and I manage the different date selectors through set analisys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let maxDate = Num(Today());
Let minDate = maxDate - 7;

actual_calendar:
Load
    Date($(minDate) + IterNo() - 1) as actual_date
AutoGenerate
    1    
While
    ($(minDate) + IterNo() - 1) &amp;lt;= $(maxDate);

comparable_calendar:
Load
    Date($(minDate) + IterNo() - 1) as comp_date
AutoGenerate
    1    
While
    ($(minDate) + IterNo() - 1) &amp;lt;= $(maxDate);

fact:
Load
    Peek('actual_date', Mod(RowNo(), 8), 'actual_calendar') as sales_date,
    Pick(Mod(RowNo(), 3) + 1, 'A', 'B', 'C')                as company,
    Round(Rand() * 100 + 100, 0.001)                        as sales
AutoGenerate
    100;

maxDate = ;
minDate = ;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adecora_0-1729250311422.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173133i0582AADB3FC94A6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adecora_0-1729250311422.png" alt="adecora_0-1729250311422.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adecora_1-1729250361787.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173134iE538188D560D823F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adecora_1-1729250361787.png" alt="adecora_1-1729250361787.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is possible to get another approach without the use of island tables? In that case w&lt;SPAN&gt;hat would be the differences in performance???&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 11:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487893#M101591</guid>
      <dc:creator>adecora</dc:creator>
      <dc:date>2024-10-18T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two date selector for the fact table</title>
      <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487918#M101597</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154293"&gt;@adecora&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is a classic question. You can dominate the possible solutions reading those articles:&lt;/P&gt;
&lt;P&gt;Canonical Date:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/Canonical-Date/ba-p/1463578" target="_blank"&gt;Canonical Date - Qlik Community - 1463578&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Why You sometimes should Load a Master Table several times:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/Why-You-sometimes-should-Load-a-Master-Table-several-times/ba-p/1472008" target="_blank"&gt;Why You sometimes should Load a Master Table sever... - Qlik Community - 1472008&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Linking to two or more dates:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Linking-to-two-or-more-dates/ta-p/1495322" target="_blank"&gt;Linking to two or more dates - Qlik Community - 1495322&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 13:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487918#M101597</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-10-18T13:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two date selector for the fact table</title>
      <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487958#M101602</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154293"&gt;@adecora&lt;/a&gt;&amp;nbsp; I would not suggest to use Island table as they are not good for performance point of view. You may need a common date calendar which can be linked to both the Dates using flag. You can then utilise that flag in measure to have flavour of both the dates. Checkout below link as an example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Create-a-common-Calendar/m-p/2064060#M700" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Create-a-common-Calendar/m-p/2064060#M700&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 15:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2487958#M101602</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-18T15:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Two date selector for the fact table</title>
      <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2488026#M101616</link>
      <description>&lt;P&gt;Another approach to solve this (if I understand your scenario correctly) is to use alternate states. With alternate states you can compare two sets of selections in the application with each other.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could start exploring this concept on this page:&amp;nbsp;&lt;A title="Using alternate states for comparative analysis" href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Visualizations/alternate-states-comparative-analysis.htm" target="_blank" rel="noopener"&gt;Using alternate states for comparative analysis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 06:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2488026#M101616</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-10-19T06:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Two date selector for the fact table</title>
      <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2488396#M101669</link>
      <description>&lt;P&gt;Thanks, actually this approach works good, although it can be not really meaninfull to the end user (on checking selection state)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adecora_0-1729597240062.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173249i5FDA8922B5A68CF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adecora_0-1729597240062.png" alt="adecora_0-1729597240062.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 11:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2488396#M101669</guid>
      <dc:creator>adecora</dc:creator>
      <dc:date>2024-10-22T11:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Two date selector for the fact table</title>
      <link>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2488402#M101670</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;hi, proposal readings are good but all articles are about having multiple dates on fact table, and unified this dates with a common calendar... but I'm triying the get almost the opposite, from one unique date on the fact table create two different selectors that allows me to made diferent selections on the fact table without one be&amp;nbsp;interfered by the other.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 11:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Two-date-selector-for-the-fact-table/m-p/2488402#M101670</guid>
      <dc:creator>adecora</dc:creator>
      <dc:date>2024-10-22T11:51:50Z</dc:date>
    </item>
  </channel>
</rss>

