<?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 How to Create a detached calendar in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Create-a-detached-calendar-in-Qlik-Sense/m-p/1684539#M52143</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a data model with Dim_time (Calendar) in Qlik Sense.&lt;/P&gt;&lt;P&gt;It work well , but the problem is that : if i want all datas for 2019 year , to show data i select year 2019 and all months of this year to have a result. But for the user is not a best way.&lt;/P&gt;&lt;P&gt;Now i want to add a detached calendar which permit to user to select 2019 year and automatically select all months of this year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a fields of detached calendar become a select field for user , when he selct 2019 year, automatically all monts a selected.&lt;/P&gt;&lt;P&gt;Please help me !&lt;/P&gt;&lt;P&gt;my script&lt;/P&gt;&lt;P&gt;Fact_table:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;id,cost,order_date&lt;BR /&gt;1 ,200,'01/12/2017'&lt;BR /&gt;2 ,86 ,'01/015/2019'&lt;BR /&gt;3 ,900,'20/05/2019'&lt;BR /&gt;3 ,745, '01/12/2018'&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Dim_product:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;id,brand,qty&lt;BR /&gt;1 ,'action',5&lt;BR /&gt;2 ,'casino' ,5&lt;BR /&gt;3 ,'carrefour',8&lt;BR /&gt;3 ,'hp' ,12&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIM_TIME:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;DateId as order_date,&lt;BR /&gt;date(DateId,'DD/MM/YYYY') as Date,&lt;BR /&gt;day(DateId) as Jour,&lt;BR /&gt;month(DateId) as Mois,&lt;BR /&gt;num(month(DateId), '00') as Mois_Num,&lt;BR /&gt;MonthName(DateId) as Mois_Nom,&lt;BR /&gt;year(DateId) &amp;amp; num(month(DateId), '00') as AnnéeMois, // Année mois en cours&lt;BR /&gt;year(DateId)-1 &amp;amp; num(month(DateId), '00') as AnnéeMois_Prv_Y1,&lt;BR /&gt;year(DateId)-2 &amp;amp; num(month(DateId), '00') as AnnéeMois_Prv_Y2,&lt;BR /&gt;year(AddMonths(DateId,-1)) &amp;amp; num(month(AddMonths(DateId,-1)), '00') as AnnéeMois_Prv_M1,&lt;BR /&gt;year(DateId) as Année,&lt;BR /&gt;year(DateId)-1 as Année_P1,&lt;BR /&gt;year(DateId)-2 as Année_P2&lt;BR /&gt;Where Exists (order_date,DateId);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Generate a temp table of dates&lt;BR /&gt;LOAD&lt;BR /&gt;mindate + IterNo() as DateId&lt;BR /&gt;While mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;min(order_date) as mindate,&lt;BR /&gt;max(order_date) as maxdate;&lt;/P&gt;&lt;P&gt;LOAD Distinct order_date&lt;BR /&gt;RESIDENT Fact_table Order by order_date asc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qualify*;&lt;BR /&gt;DETACHED_CALENDAR:&lt;BR /&gt;load * Resident&lt;BR /&gt;DIM_TIME;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:56:45 GMT</pubDate>
    <dc:creator>soka41</dc:creator>
    <dc:date>2024-11-16T18:56:45Z</dc:date>
    <item>
      <title>How to Create a detached calendar in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Create-a-detached-calendar-in-Qlik-Sense/m-p/1684539#M52143</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a data model with Dim_time (Calendar) in Qlik Sense.&lt;/P&gt;&lt;P&gt;It work well , but the problem is that : if i want all datas for 2019 year , to show data i select year 2019 and all months of this year to have a result. But for the user is not a best way.&lt;/P&gt;&lt;P&gt;Now i want to add a detached calendar which permit to user to select 2019 year and automatically select all months of this year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a fields of detached calendar become a select field for user , when he selct 2019 year, automatically all monts a selected.&lt;/P&gt;&lt;P&gt;Please help me !&lt;/P&gt;&lt;P&gt;my script&lt;/P&gt;&lt;P&gt;Fact_table:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;id,cost,order_date&lt;BR /&gt;1 ,200,'01/12/2017'&lt;BR /&gt;2 ,86 ,'01/015/2019'&lt;BR /&gt;3 ,900,'20/05/2019'&lt;BR /&gt;3 ,745, '01/12/2018'&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Dim_product:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;id,brand,qty&lt;BR /&gt;1 ,'action',5&lt;BR /&gt;2 ,'casino' ,5&lt;BR /&gt;3 ,'carrefour',8&lt;BR /&gt;3 ,'hp' ,12&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIM_TIME:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;DateId as order_date,&lt;BR /&gt;date(DateId,'DD/MM/YYYY') as Date,&lt;BR /&gt;day(DateId) as Jour,&lt;BR /&gt;month(DateId) as Mois,&lt;BR /&gt;num(month(DateId), '00') as Mois_Num,&lt;BR /&gt;MonthName(DateId) as Mois_Nom,&lt;BR /&gt;year(DateId) &amp;amp; num(month(DateId), '00') as AnnéeMois, // Année mois en cours&lt;BR /&gt;year(DateId)-1 &amp;amp; num(month(DateId), '00') as AnnéeMois_Prv_Y1,&lt;BR /&gt;year(DateId)-2 &amp;amp; num(month(DateId), '00') as AnnéeMois_Prv_Y2,&lt;BR /&gt;year(AddMonths(DateId,-1)) &amp;amp; num(month(AddMonths(DateId,-1)), '00') as AnnéeMois_Prv_M1,&lt;BR /&gt;year(DateId) as Année,&lt;BR /&gt;year(DateId)-1 as Année_P1,&lt;BR /&gt;year(DateId)-2 as Année_P2&lt;BR /&gt;Where Exists (order_date,DateId);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Generate a temp table of dates&lt;BR /&gt;LOAD&lt;BR /&gt;mindate + IterNo() as DateId&lt;BR /&gt;While mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;min(order_date) as mindate,&lt;BR /&gt;max(order_date) as maxdate;&lt;/P&gt;&lt;P&gt;LOAD Distinct order_date&lt;BR /&gt;RESIDENT Fact_table Order by order_date asc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qualify*;&lt;BR /&gt;DETACHED_CALENDAR:&lt;BR /&gt;load * Resident&lt;BR /&gt;DIM_TIME;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Create-a-detached-calendar-in-Qlik-Sense/m-p/1684539#M52143</guid>
      <dc:creator>soka41</dc:creator>
      <dc:date>2024-11-16T18:56:45Z</dc:date>
    </item>
  </channel>
</rss>

