<?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 show data point in weeks or month gap in line chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-show-data-point-in-weeks-or-month-gap-in-line-chart/m-p/1841080#M69670</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to create a line chart that shows the last 20 data points in 7 days or month gaps.&lt;/P&gt;&lt;P&gt;for example, If a user selects "Weeks" and the date&amp;nbsp; 29/09/21 in the date picker then the data will show the date: 29/09 ,22/09, 15/09,8/09 ...&lt;/P&gt;&lt;P&gt;if they will select 28/09/21 then:28/09 ,21/09, 14/09,7/09....&amp;nbsp;and so on...&lt;/P&gt;&lt;P&gt;I found out I can do this if I create a flag in the script for a specific day but I need to be dynamic per the selection&lt;/P&gt;&lt;P&gt;the data points should be dynamic as well so if a user selects the 28/09 it will show 20 weeks back and not from the max date (like an interval window that move per selection)&lt;/P&gt;&lt;P&gt;in the image you can see the result I have now but this is just for a specific date in the script,&lt;/P&gt;&lt;P&gt;the dimension is: FREEZ_DATE and&amp;nbsp;&lt;/P&gt;&lt;P&gt;the set analysis is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;[Last$(=^Diff)DayFlag]={1},[$(=^DateDiff)]={"&amp;gt;=$(=Max([$(=^DateDiff)]-19))&amp;lt;=$(=Max([$(=^DateDiff)]))"},FREEZE_DATE&amp;gt;} SCORE)&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="Amiran_D_1-1633244104466.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63195i38447F2BDBECE53F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amiran_D_1-1633244104466.png" alt="Amiran_D_1-1633244104466.png" /&gt;&lt;/span&gt;&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="Amiran_D_0-1633243858643.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63194iC5AB861DBD5027FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amiran_D_0-1633243858643.png" alt="Amiran_D_0-1633243858643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Oct 2021 06:59:53 GMT</pubDate>
    <dc:creator>Amiran_D</dc:creator>
    <dc:date>2021-10-03T06:59:53Z</dc:date>
    <item>
      <title>How to show data point in weeks or month gap in line chart</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-data-point-in-weeks-or-month-gap-in-line-chart/m-p/1841080#M69670</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to create a line chart that shows the last 20 data points in 7 days or month gaps.&lt;/P&gt;&lt;P&gt;for example, If a user selects "Weeks" and the date&amp;nbsp; 29/09/21 in the date picker then the data will show the date: 29/09 ,22/09, 15/09,8/09 ...&lt;/P&gt;&lt;P&gt;if they will select 28/09/21 then:28/09 ,21/09, 14/09,7/09....&amp;nbsp;and so on...&lt;/P&gt;&lt;P&gt;I found out I can do this if I create a flag in the script for a specific day but I need to be dynamic per the selection&lt;/P&gt;&lt;P&gt;the data points should be dynamic as well so if a user selects the 28/09 it will show 20 weeks back and not from the max date (like an interval window that move per selection)&lt;/P&gt;&lt;P&gt;in the image you can see the result I have now but this is just for a specific date in the script,&lt;/P&gt;&lt;P&gt;the dimension is: FREEZ_DATE and&amp;nbsp;&lt;/P&gt;&lt;P&gt;the set analysis is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;[Last$(=^Diff)DayFlag]={1},[$(=^DateDiff)]={"&amp;gt;=$(=Max([$(=^DateDiff)]-19))&amp;lt;=$(=Max([$(=^DateDiff)]))"},FREEZE_DATE&amp;gt;} SCORE)&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="Amiran_D_1-1633244104466.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63195i38447F2BDBECE53F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amiran_D_1-1633244104466.png" alt="Amiran_D_1-1633244104466.png" /&gt;&lt;/span&gt;&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="Amiran_D_0-1633243858643.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63194iC5AB861DBD5027FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amiran_D_0-1633243858643.png" alt="Amiran_D_0-1633243858643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 06:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-data-point-in-weeks-or-month-gap-in-line-chart/m-p/1841080#M69670</guid>
      <dc:creator>Amiran_D</dc:creator>
      <dc:date>2021-10-03T06:59:53Z</dc:date>
    </item>
  </channel>
</rss>

