<?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: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2489890#M101866</link>
    <description>&lt;P&gt;&amp;nbsp; Hi&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41222"&gt;@Qrishna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking time to provide your solution, it is possible in 2 different views one for sales and another for contracts.&lt;/P&gt;
&lt;P&gt;But , User expecting the both(Sales and Contracts) on the same pivot view to easy to compare the sales and contract net values. any how the sales values splitting across the months and years but If we select Contract table month year then it show show the contract value associated contract and associated sales value from sales table. and again user wants to drill down further the sales value should be reduced but not Contracts values. it remains same until we select the Contract Year and Month and Sales value remains same until we select the sales year and month filters. by creating any common table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as shown below.&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="Correct_Answer_0-1730284936384.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173568i9A2FEFCD43BF2BE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Correct_Answer_0-1730284936384.png" alt="Correct_Answer_0-1730284936384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you please help in this scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help will be much appreciated. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 11:04:03 GMT</pubDate>
    <dc:creator>Correct_Answer</dc:creator>
    <dc:date>2024-10-30T11:04:03Z</dc:date>
    <item>
      <title>Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2488455#M101674</link>
      <description>&lt;P&gt;Hi Teams,&lt;/P&gt;
&lt;P&gt;I have a 2 DataSets, one is with contracts information as shown below&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="587"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="7" width="587"&gt;Contracts Overview Table&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Contract_ID&lt;/TD&gt;
&lt;TD&gt;Contract_Date&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Contrat_MONTH&lt;/TD&gt;
&lt;TD&gt;Contract_Year&lt;/TD&gt;
&lt;TD&gt;Contract_Value&lt;/TD&gt;
&lt;TD&gt;Start_Date&lt;/TD&gt;
&lt;TD&gt;End_Date&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1001&lt;/TD&gt;
&lt;TD&gt;23-Jan-23&lt;/TD&gt;
&lt;TD&gt;JAN&lt;/TD&gt;
&lt;TD&gt;2023&lt;/TD&gt;
&lt;TD&gt;10000&lt;/TD&gt;
&lt;TD&gt;23-Jan-23&lt;/TD&gt;
&lt;TD&gt;1-Dec-23&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1002&lt;/TD&gt;
&lt;TD&gt;1-Feb-22&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;2022&lt;/TD&gt;
&lt;TD&gt;20000&lt;/TD&gt;
&lt;TD&gt;1-Feb-22&lt;/TD&gt;
&lt;TD&gt;1-Dec-23&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1003&lt;/TD&gt;
&lt;TD&gt;1-Mar-24&lt;/TD&gt;
&lt;TD&gt;MAR&lt;/TD&gt;
&lt;TD&gt;2024&lt;/TD&gt;
&lt;TD&gt;4622&lt;/TD&gt;
&lt;TD&gt;1-Mar-24&lt;/TD&gt;
&lt;TD&gt;1-Dec-24&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here, it shows the details one record for one Contract_ID.&lt;/P&gt;
&lt;P&gt;and I have another table for Sales contribution across the Year Month contribution value as shown below.&lt;/P&gt;
&lt;P&gt;Sales Utilization:&lt;/P&gt;
&lt;TABLE width="454px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;Contract ID&lt;/TD&gt;
&lt;TD width="106px"&gt;SALES Date&amp;nbsp;&lt;/TD&gt;
&lt;TD width="90px"&gt;SALES MONTH&lt;/TD&gt;
&lt;TD width="83px"&gt;SALES Year&lt;/TD&gt;
&lt;TD width="83px"&gt;Sales Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1001&lt;/TD&gt;
&lt;TD width="106px"&gt;23-Jan-23&lt;/TD&gt;
&lt;TD width="90px"&gt;JAN&lt;/TD&gt;
&lt;TD width="83px"&gt;2023&lt;/TD&gt;
&lt;TD width="83px"&gt;5000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1001&lt;/TD&gt;
&lt;TD width="106px"&gt;########&lt;/TD&gt;
&lt;TD width="90px"&gt;FEB&lt;/TD&gt;
&lt;TD width="83px"&gt;2023&lt;/TD&gt;
&lt;TD width="83px"&gt;2000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1001&lt;/TD&gt;
&lt;TD width="106px"&gt;########&lt;/TD&gt;
&lt;TD width="90px"&gt;MAR&lt;/TD&gt;
&lt;TD width="83px"&gt;2023&lt;/TD&gt;
&lt;TD width="83px"&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1001&lt;/TD&gt;
&lt;TD width="106px"&gt;23-Apr-23&lt;/TD&gt;
&lt;TD width="90px"&gt;APR&lt;/TD&gt;
&lt;TD width="83px"&gt;2023&lt;/TD&gt;
&lt;TD width="83px"&gt;2000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Feb-22&lt;/TD&gt;
&lt;TD width="90px"&gt;Feb&lt;/TD&gt;
&lt;TD width="83px"&gt;2022&lt;/TD&gt;
&lt;TD width="83px"&gt;5000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Mar-22&lt;/TD&gt;
&lt;TD width="90px"&gt;MAR&lt;/TD&gt;
&lt;TD width="83px"&gt;2022&lt;/TD&gt;
&lt;TD width="83px"&gt;5000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Apr-22&lt;/TD&gt;
&lt;TD width="90px"&gt;APR&lt;/TD&gt;
&lt;TD width="83px"&gt;2022&lt;/TD&gt;
&lt;TD width="83px"&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-May-22&lt;/TD&gt;
&lt;TD width="90px"&gt;MAY&lt;/TD&gt;
&lt;TD width="83px"&gt;2022&lt;/TD&gt;
&lt;TD width="83px"&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Jun-22&lt;/TD&gt;
&lt;TD width="90px"&gt;JUN&lt;/TD&gt;
&lt;TD width="83px"&gt;2022&lt;/TD&gt;
&lt;TD width="83px"&gt;4000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Jul-22&lt;/TD&gt;
&lt;TD width="90px"&gt;JUL&lt;/TD&gt;
&lt;TD width="83px"&gt;2022&lt;/TD&gt;
&lt;TD width="83px"&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Aug-21&lt;/TD&gt;
&lt;TD width="90px"&gt;AUG&lt;/TD&gt;
&lt;TD width="83px"&gt;2021&lt;/TD&gt;
&lt;TD width="83px"&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Sep-21&lt;/TD&gt;
&lt;TD width="90px"&gt;SEP&lt;/TD&gt;
&lt;TD width="83px"&gt;2021&lt;/TD&gt;
&lt;TD width="83px"&gt;1500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1002&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Oct-21&lt;/TD&gt;
&lt;TD width="90px"&gt;OCT&lt;/TD&gt;
&lt;TD width="83px"&gt;2021&lt;/TD&gt;
&lt;TD width="83px"&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Mar-24&lt;/TD&gt;
&lt;TD width="90px"&gt;MAR&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;2500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Apr-24&lt;/TD&gt;
&lt;TD width="90px"&gt;APR&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-May-24&lt;/TD&gt;
&lt;TD width="90px"&gt;MAY&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Jun-24&lt;/TD&gt;
&lt;TD width="90px"&gt;JUN&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;400&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Jul-24&lt;/TD&gt;
&lt;TD width="90px"&gt;JUL&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Aug-24&lt;/TD&gt;
&lt;TD width="90px"&gt;AUG&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;90&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Sep-24&lt;/TD&gt;
&lt;TD width="90px"&gt;SEP&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;18&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Oct-24&lt;/TD&gt;
&lt;TD width="90px"&gt;OCT&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Nov-24&lt;/TD&gt;
&lt;TD width="90px"&gt;NOV&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Dec-24&lt;/TD&gt;
&lt;TD width="90px"&gt;DEC&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;900&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="92px"&gt;1003&lt;/TD&gt;
&lt;TD width="106px"&gt;1-Jan-25&lt;/TD&gt;
&lt;TD width="90px"&gt;JAN&lt;/TD&gt;
&lt;TD width="83px"&gt;2024&lt;/TD&gt;
&lt;TD width="83px"&gt;409&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wants to create a view to show the Contract and Sales values in a Pivot table for comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But data is not showing the correct values if I connect the these tables by using &lt;STRONG&gt;Contract_ID.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want to create the &lt;STRONG&gt;MasterCalendar&lt;/STRONG&gt; to Join these tables,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By Selecting the Year and Month like: Feb and 2022 the Contract_Value should be &lt;STRONG&gt;20000 &lt;/STRONG&gt;and Sales_Value should be 5000.&lt;/P&gt;
&lt;P&gt;in this case, the Sales_values are missing from sale table because it splitting across months. in this sinario how to handle the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the best practices to compare sales and contract values over the time dimention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can any one help with possible approaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help will be much appreciated.&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2488455#M101674</guid>
      <dc:creator>Correct_Answer</dc:creator>
      <dc:date>2024-11-15T20:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2488503#M101686</link>
      <description>&lt;P&gt;Try below:&lt;/P&gt;
&lt;P&gt;Contracts:&lt;BR /&gt;Load *, %ContractDateKey as %DateKey;&lt;BR /&gt;Load *, (Contract_ID &amp;amp; '|' &amp;amp; Date#(Contract_Date, 'DD-MMM-YYYY')) as %Key, Num(Date#(Contract_Date, 'DD-MMM-YYYY')) as %ContractDateKey;&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;Contract_ID,Contract_Date ,Contrat_MONTH,Contract_Year,Contract_Value,Start_Date,End_Date&lt;BR /&gt;1001,23-Jan-23,JAN,2023,10000,23-Jan-23,1-Dec-23&lt;BR /&gt;1002,1-Feb-22,Feb,2022,20000,1-Feb-22,1-Dec-23&lt;BR /&gt;1003,1-Mar-24,MAR,2024,4622,1-Mar-24,1-Dec-24&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Contract_Details:&lt;BR /&gt;Load *, ([Contract ID] &amp;amp; '|' &amp;amp; Date#([SALES Date], 'DD-MMM-YYYY')) as %Key, Num(Date#([SALES Date], 'DD-MMM-YYYY')) as %SalesDateKey;&lt;BR /&gt;LOAD [Contract ID], &lt;BR /&gt;[SALES Date], &lt;BR /&gt;[SALES MONTH], &lt;BR /&gt;[SALES Year], &lt;BR /&gt;[Sales Value]&lt;BR /&gt;FROM&lt;BR /&gt;[&lt;A href="https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/td-p/2488455" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/td-p/2488455&lt;/A&gt;]&lt;BR /&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;//----------------------------------------------------------------------------//&lt;BR /&gt;//Prepare Calendar from the above dates&lt;BR /&gt;Calendar_Temp:&lt;BR /&gt;Load %ContractDateKey as Date&lt;BR /&gt;resident Contracts&lt;BR /&gt;where not wildMatch(%ContractDateKey, '*#*');&lt;BR /&gt;Load %SalesDateKey as Date&lt;BR /&gt;resident Contract_Details&lt;BR /&gt;where not wildMatch(%SalesDateKey, '*#*');&lt;/P&gt;
&lt;P&gt;MinMax:&lt;BR /&gt;LOAD &lt;BR /&gt;Min(Date) as MinDate,&lt;BR /&gt;Max(Date) as MaxDate&lt;BR /&gt;RESIDENT Calendar_Temp;&lt;/P&gt;
&lt;P&gt;let vMinDate = num(peek('MinDate', 0, 'MinMax'));&lt;BR /&gt;let vMaxDate = num(peek('MaxDate', 0, 'MinMax'));&lt;/P&gt;
&lt;P&gt;drop table MinMax;&lt;/P&gt;
&lt;P&gt;Calendar:&lt;BR /&gt;Load&lt;BR /&gt;Num(Date(DateNum, 'DD-MMM-YYYY')) as %DateKey,&lt;BR /&gt;Date#(Date(DateNum), 'DD-MMM-YYYY') as Date,&lt;BR /&gt;Month(DateNum) as Month,&lt;BR /&gt;Year(DateNum) as Year;&lt;BR /&gt;Load distinct &lt;BR /&gt;$(vMinDate) + IterNo() - 1 as DateNum&lt;BR /&gt;AutoGenerate 1&lt;BR /&gt;While $(vMinDate) + IterNo() - 1 &amp;lt;= $(vMaxDate);&lt;/P&gt;
&lt;P&gt;drop table Calendar_Temp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2488455 - handle the Data over the multiple time dimensions (3).PNG" style="width: 631px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173275iC1D0C5F39A6E2022/image-size/large?v=v2&amp;amp;px=999" role="button" title="2488455 - handle the Data over the multiple time dimensions (3).PNG" alt="2488455 - handle the Data over the multiple time dimensions (3).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="2488455 - handle the Data over the multiple time dimensions (1).PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173274i9D75F3CA26F44285/image-size/large?v=v2&amp;amp;px=999" role="button" title="2488455 - handle the Data over the multiple time dimensions (1).PNG" alt="2488455 - handle the Data over the multiple time dimensions (1).PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2488455 - handle the Data over the multiple time dimensions (5).PNG" style="width: 998px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173273iFA741BEA97A33CC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2488455 - handle the Data over the multiple time dimensions (5).PNG" alt="2488455 - handle the Data over the multiple time dimensions (5).PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 16:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2488503#M101686</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-22T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2489890#M101866</link>
      <description>&lt;P&gt;&amp;nbsp; Hi&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41222"&gt;@Qrishna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking time to provide your solution, it is possible in 2 different views one for sales and another for contracts.&lt;/P&gt;
&lt;P&gt;But , User expecting the both(Sales and Contracts) on the same pivot view to easy to compare the sales and contract net values. any how the sales values splitting across the months and years but If we select Contract table month year then it show show the contract value associated contract and associated sales value from sales table. and again user wants to drill down further the sales value should be reduced but not Contracts values. it remains same until we select the Contract Year and Month and Sales value remains same until we select the sales year and month filters. by creating any common table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as shown below.&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="Correct_Answer_0-1730284936384.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173568i9A2FEFCD43BF2BE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Correct_Answer_0-1730284936384.png" alt="Correct_Answer_0-1730284936384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you please help in this scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help will be much appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 11:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2489890#M101866</guid>
      <dc:creator>Correct_Answer</dc:creator>
      <dc:date>2024-10-30T11:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2489910#M101870</link>
      <description>&lt;P&gt;Fact-tables couldn't be directly associated - at least not without some risks to lose any information in the various views.&lt;/P&gt;
&lt;P&gt;This means additional steps are required, for example to check both sides against each other in beforehand and then to fill per data-population the gaps. Another common way is to place a link-table between them.&lt;/P&gt;
&lt;P&gt;Both approaches have disadvantages in regards to efforts, complexity, performance and further more and therefore I suggest to skip all these challenges by using a star-scheme data-model and combining the facts into a single fact-table by concatenating them and harmonizing all field-names and data-structures as much as possible, for example in this way with A = Contracts and B = Sales:&lt;/P&gt;
&lt;P&gt;t: load ID, date(From + iterno() - 1) as Date, Value / (To - From + 1) as Value, 'A' as Source&lt;BR /&gt;&amp;nbsp; &amp;nbsp;from A while&amp;nbsp;From + iterno() - 1 &amp;lt;= To;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;concatenate(t)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; load ID, Date, Value, 'B' as Source&lt;BR /&gt;&amp;nbsp; from B;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2489910#M101870</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-10-30T12:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2490410#M101928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response, we can concatenate the two tables as per your solution but there a challenge while comparing the 2 values as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Contracts:&lt;BR /&gt;LOAD [Contract ID], &lt;BR /&gt;[Contract Date], &lt;BR /&gt;[Contrat MONTH], &lt;BR /&gt;[Contract Year], &lt;BR /&gt;[Contract Value], &lt;BR /&gt;Start_Date, &lt;BR /&gt;End_Date,&lt;BR /&gt;'A' as Source&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\Srini\OneDrive\Desktop\Source for Contract Sales.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Concatenate(Contracts)&lt;/P&gt;
&lt;P&gt;Sales:&lt;/P&gt;
&lt;P&gt;LOAD [Contract ID], &lt;BR /&gt;[SALES Date] as [Contract Date], &lt;BR /&gt;[SALES MONTH] as [Contrat MONTH], &lt;BR /&gt;[SALES Year] as [Contract Year], &lt;BR /&gt;[Sales Value],&lt;BR /&gt;'B' as Source&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\Srini\OneDrive\Desktop\Source for Contract Sales.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet2);&lt;/P&gt;
&lt;P&gt;Following is the output :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Correct_Answer_1-1730530963222.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173724i5A4D7D238532D131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Correct_Answer_1-1730530963222.png" alt="Correct_Answer_1-1730530963222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Blanks are populating as per the&amp;nbsp; Data on Sales Year and Month Dimension,&lt;/P&gt;
&lt;P&gt;While comparing the Contract Overall amount and sales distributed amount, Sum(Contract_values) showing zero for few selection, which are booking date is different than sales distribution date.&lt;/P&gt;
&lt;P&gt;for Example:&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="Correct_Answer_2-1730531505633.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173725i13F499BB3D4962F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Correct_Answer_2-1730531505633.png" alt="Correct_Answer_2-1730531505633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Contract values are coming as zero for year month selection because of concatenation so that we are unable to compare the overall contract value with Breakdown sales values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help to achieve this scenario&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help will be much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 07:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2490410#M101928</guid>
      <dc:creator>Correct_Answer</dc:creator>
      <dc:date>2024-11-02T07:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2490432#M101930</link>
      <description>&lt;P&gt;That wasn't my suggestion else that all fields all harmonized as much as possible. This mewans there is only one ID and one Date and one Value and not separated ones for each source. All these data are the same only the direction of them is different which is addressed with the extra field Source - which enables you to differentiate between the sources in dimensions, selections and set analysis condition.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 14:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2490432#M101930</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-02T14:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multiple Date dimensions, How to handle the Data over the multiple time dimensions.</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2490467#M101933</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141243"&gt;@Correct_Answer&lt;/a&gt;&amp;nbsp; As your contract table has single row per ID you can join it with sales table on contract_id and monthstart date (sales_date &amp;amp; contract_date). If your sales_date &amp;amp; contract_date are matching then no need to create &lt;STRONG&gt;&lt;FONT color="#339966"&gt;MonthStart,&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;you can directly join contract_date with sales_date by renaming it&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;sales:&lt;BR /&gt;Load &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Contract_ID&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;SALES_Date&lt;/FONT&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MonthStart(SALES_Date) as &lt;STRONG&gt;&lt;FONT color="#339966"&gt;MonthStart&lt;/FONT&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sales_Value;&lt;BR /&gt;load * Inline [&lt;BR /&gt;Contract_ID SALES_Date SALES_MONTH SALES_Year Sales_Value&lt;BR /&gt;1001 23-Jan-23 JAN 2023 5000&lt;BR /&gt;1001 1-Feb-23 FEB 2023 2000&lt;BR /&gt;1001 11-Mar-23 MAR 2023 1000&lt;BR /&gt;1001 23-Apr-23 APR 2023 2000&lt;BR /&gt;1002 1-Feb-22 Feb 2022 5000&lt;BR /&gt;1002 1-Mar-22 MAR 2022 5000&lt;BR /&gt;1002 1-Apr-22 APR 2022 1000&lt;BR /&gt;1002 1-May-22 MAY 2022 1000&lt;BR /&gt;1002 1-Jun-22 JUN 2022 4000&lt;BR /&gt;1002 1-Jul-22 JUL 2022 1000&lt;BR /&gt;1002 1-Aug-21 AUG 2021 500&lt;BR /&gt;1002 1-Sep-21 SEP 2021 1500&lt;BR /&gt;1002 1-Oct-21 OCT 2021 1000&lt;BR /&gt;1003 1-Mar-24 MAR 2024 2500&lt;BR /&gt;1003 1-Apr-24 APR 2024 100&lt;BR /&gt;1003 1-May-24 MAY 2024 120&lt;BR /&gt;1003 1-Jun-24 JUN 2024 400&lt;BR /&gt;1003 1-Jul-24 JUL 2024 50&lt;BR /&gt;1003 1-Aug-24 AUG 2024 90&lt;BR /&gt;1003 1-Sep-24 SEP 2024 18&lt;BR /&gt;1003 1-Oct-24 OCT 2024 15&lt;BR /&gt;1003 1-Nov-24 NOV 2024 20&lt;BR /&gt;1003 1-Dec-24 DEC 2024 900&lt;BR /&gt;1003 1-Jan-25 JAN 2024 409](delimiter is '\t');&lt;/P&gt;
&lt;P&gt;Left Join(sales)&lt;BR /&gt;Load &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Contract_ID&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MonthStart(Contract_Date) as &lt;STRONG&gt;&lt;FONT color="#339966"&gt;MonthStart&lt;/FONT&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Contract_Date,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Contract_Value,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Start_Date,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End_Date;&lt;BR /&gt;load * Inline [&lt;BR /&gt;Contract_ID Contract_Date Contrat_MONTH Contract_Year Contract_Value Start_Date End_Date&lt;BR /&gt;1001 23-Jan-23 JAN 2023 10000 23-Jan-23 1-Dec-23&lt;BR /&gt;1002 1-Feb-22 Feb 2022 20000 1-Feb-22 1-Dec-23&lt;BR /&gt;1003 1-Mar-24 MAR 2024 4622 1-Mar-24 1-Dec-24 ](delimiter is '\t');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calendar:&lt;BR /&gt;Load *,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;monthname(SALES_Date) as MonthName,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;month(SALES_Date) as Month;&lt;BR /&gt;Load date(MinDate+IterNo()-1) as &lt;STRONG&gt;SALES_Date&lt;/STRONG&gt;&lt;BR /&gt;While MinDate+IterNo()-1&amp;lt;=MaxDate;&lt;BR /&gt;Load min(Date) as MinDate,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;max(Date) as MaxDate;&lt;BR /&gt;Load FieldValue('SALES_Date',RecNo()) as Date&lt;BR /&gt;AutoGenerate FieldValueCount('SALES_Date');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For, contract_value, you might need to use sum(&lt;STRONG&gt;distinct&amp;nbsp;&lt;/STRONG&gt;contract_value), because in sales you might have multiple entries in a month for same contract_id, hence you will have repeated contract_values for that month. If you have single entry of sales for that month for same contract_id, no need to use distinct&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;when you use sum(distinct contract_value), make sure for that measure you have enabled Total option as "Sum"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kushal_Chawda_0-1730662944246.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173737iD82971E9985A3621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kushal_Chawda_0-1730662944246.png" alt="Kushal_Chawda_0-1730662944246.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 19:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Multiple-Date-dimensions-How-to-handle-the-Data-over/m-p/2490467#M101933</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-03T19:57:45Z</dc:date>
    </item>
  </channel>
</rss>

