<?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 set analysis calculation of dates period set (filters affect results) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496036#M1226282</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7275"&gt;@Peony&lt;/a&gt;&amp;nbsp; below should work&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=Concat({&amp;lt;Year=,Quarter=,Month=, OrderDateKey={"&amp;gt;$(vComparedDateMin)&amp;lt;=$(vComparedDateMax)"}&amp;gt;}OrderDate, ' |')&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 04 Dec 2024 16:51:15 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-12-04T16:51:15Z</dc:date>
    <item>
      <title>Issue with set analysis calculation of dates period set (filters affect results)</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2495860#M1226279</link>
      <description>&lt;P&gt;Hi all. Could someone please help me to clarify why my calculation doesn't work for all cases I tested.&lt;BR /&gt;What I need to do:&lt;BR /&gt;1. I need to calculate the list of dates that are included in the period selected by the user. The user can select in the fields Year, Quarter, Month, Week, Day. Like&amp;nbsp;period from 25/10/2024 to 22/10/2024.&lt;BR /&gt;&lt;BR /&gt;2. Than I need to calculate the number of days that are included in the selected period. For&amp;nbsp;period from 25/10/2024 to 22/10/2024 it is gonna be 4 days.&lt;BR /&gt;&lt;BR /&gt;3. I need to count previous day before earliest date in the period. It gonna be&amp;nbsp;21/10/2024 - max date of the new calculated period&lt;BR /&gt;&lt;BR /&gt;4.&amp;nbsp;Then I subtract 4 days from the 21/10/2024 and calculate the last date of the new period. It will be 18/10/2024.&lt;/P&gt;
&lt;P&gt;Here how result looks like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peony_0-1733245163472.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175152i299C20D60DB78FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Peony_0-1733245163472.png" alt="Peony_0-1733245163472.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All issues starts when I use selection only for several filters. Lets say I I select Year = 2024, Quarter = Q4, Month = October. In this case list of dates from selected period will be from 31/10/2024 to 01/10/2024. Amount of days for this period is 31. So I expected to get results for calculated period&amp;nbsp;30/09/2024 to 31/08/2024. But in fact I received nothing&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peony_1-1733245769298.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175153i4BF350862D8C43BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Peony_1-1733245769298.png" alt="Peony_1-1733245769298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As far as I see, it happens because&amp;nbsp;31/08/2024 is relate to Q3. And till I have Q4 selected I will receive empty results. But I excluded possible field selections in set analysis for calculated period and I don't understand why it does not work.&amp;nbsp;&lt;BR /&gt;My formula is&amp;nbsp;&lt;BR /&gt;=Concat({&amp;lt;Day=, Week= ,Month =, Quater =, Year =, OrderDateKey={"&amp;gt;$(=$(vComparedDateMin))&amp;lt;=$(=$(vComparedDateMax))"}&amp;gt;}OrderDate, ' ')&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;OrderDateKey - is field that contained numeric value of date&lt;BR /&gt;vComparedDateMin - earliest date in a new periods set&lt;BR /&gt;vComparedDateMax - latest date&amp;nbsp; in a new periods set&lt;BR /&gt;OrderDate - formated date values&lt;BR /&gt;&lt;BR /&gt;I also add .qvw file&amp;nbsp;&lt;BR /&gt;I'll be very appreciate for any help or hint&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 22:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2495860#M1226279</guid>
      <dc:creator>Peony</dc:creator>
      <dc:date>2024-12-03T22:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with set analysis calculation of dates period set (filters affect results)</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2495968#M1226281</link>
      <description>&lt;P&gt;Normally it should be working - maybe your issue is just a typo because Quater &amp;lt;&amp;gt; Quarter. If this isn't the cause then move the expression from the text-box to a table-chart and leave the expression-label blank. Then hover on this label to see how the used variables are resolved - there may any mistakes.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2495968#M1226281</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-12-04T11:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with set analysis calculation of dates period set (filters affect results)</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496036#M1226282</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7275"&gt;@Peony&lt;/a&gt;&amp;nbsp; below should work&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=Concat({&amp;lt;Year=,Quarter=,Month=, OrderDateKey={"&amp;gt;$(vComparedDateMin)&amp;lt;=$(vComparedDateMax)"}&amp;gt;}OrderDate, ' |')&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Dec 2024 16:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496036#M1226282</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-12-04T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with set analysis calculation of dates period set (filters affect results)</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496049#M1226283</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;Thank you! &lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;It works as should now!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 18:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496049#M1226283</guid>
      <dc:creator>Peony</dc:creator>
      <dc:date>2024-12-04T18:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with set analysis calculation of dates period set (filters affect results)</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496050#M1226284</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; Yeap! It was a silly typo issue. Thank you for notice and for the additional option how to check issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 18:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis-calculation-of-dates-period-set-filters/m-p/2496050#M1226284</guid>
      <dc:creator>Peony</dc:creator>
      <dc:date>2024-12-04T18:21:12Z</dc:date>
    </item>
  </channel>
</rss>

