<?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 Dynamic year passing as parameter in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927635#M76396</link>
    <description>&lt;P&gt;I have a dummy table in data model with certain years and some important dates against it which is not linked to my fact table. i have created a pivot table which has data from fact table. I need to get the year from date in pivot table and check the year in the dummy table to get those dates in my pivot table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used set analysis with aggr(). unfortunately, it does not work.&lt;/P&gt;
&lt;P&gt;max({&amp;lt;Type={'RAM'},Low_Year={"(=aggr(Year([Policy From date]),[Policy No]))"}&amp;gt;}Low_Month_Start_Date)&lt;/P&gt;
&lt;P&gt;low_year and low_month_start_date are from dummy table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[policy from date] from fact table.&lt;/P&gt;
&lt;P&gt;please help!!!&lt;/P&gt;</description>
    <pubDate>Sun, 08 May 2022 12:38:02 GMT</pubDate>
    <dc:creator>varunkumar_mung</dc:creator>
    <dc:date>2022-05-08T12:38:02Z</dc:date>
    <item>
      <title>Dynamic year passing as parameter in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927635#M76396</link>
      <description>&lt;P&gt;I have a dummy table in data model with certain years and some important dates against it which is not linked to my fact table. i have created a pivot table which has data from fact table. I need to get the year from date in pivot table and check the year in the dummy table to get those dates in my pivot table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used set analysis with aggr(). unfortunately, it does not work.&lt;/P&gt;
&lt;P&gt;max({&amp;lt;Type={'RAM'},Low_Year={"(=aggr(Year([Policy From date]),[Policy No]))"}&amp;gt;}Low_Month_Start_Date)&lt;/P&gt;
&lt;P&gt;low_year and low_month_start_date are from dummy table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[policy from date] from fact table.&lt;/P&gt;
&lt;P&gt;please help!!!&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 12:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927635#M76396</guid>
      <dc:creator>varunkumar_mung</dc:creator>
      <dc:date>2022-05-08T12:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic year passing as parameter in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927673#M76398</link>
      <description>&lt;P&gt;You need to create a calendar that i&lt;STRONG&gt;s associated with the fact table&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer below on How to create a calendar&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlikviewcookbook.com/2015/05/better-calendar-scripts/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/2015/05/better-calendar-scripts/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that you can refer below post on how to filter data for particular periods&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 17:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927673#M76398</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-08T17:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic year passing as parameter in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927779#M76412</link>
      <description>&lt;P&gt;Thanks for the reply. But i cannot link year with fact table as there is no unique key between the tables.&lt;/P&gt;
&lt;P&gt;as an example:- based on the value of policy from date and condition it has to take different sets from dummy table&lt;/P&gt;
&lt;P&gt;if my policy starts on 01-01-2022 and end date is on 31-12-2022 i need to get the corresponding dates from dummy table for year 2022.&lt;/P&gt;
&lt;P&gt;but if my policy start date is on 01-12-2021 and end date is on 31-11-2022, again i need to get dates for year 2022.&lt;/P&gt;
&lt;P&gt;thats why i kept the dummy table as stand alone and trying to pass parameter year of from date or to date according to scenario&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 07:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927779#M76412</guid>
      <dc:creator>varunkumar_mung</dc:creator>
      <dc:date>2022-05-09T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic year passing as parameter in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927849#M76421</link>
      <description>&lt;P&gt;If you have 2&amp;nbsp; or date fields in your fact table you just need to create a link table / intermediate table to associate it to the calendar&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Connecting-Multiple-Calendar-Date-Fields-in-a-Qlik-Sense-App/ba-p/1805087" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Connecting-Multiple-Calendar-Date-Fields-in-a-Qlik-Sense-App/ba-p/1805087Then just create an intermediate table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-year-passing-as-parameter-in-pivot-table/m-p/1927849#M76421</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-09T09:21:17Z</dc:date>
    </item>
  </channel>
</rss>

