<?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: Display the 2 KPI for the Current Date and the Comparable Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610210#M45331</link>
    <description>&lt;P&gt;The hard part is that the Comparable day is already calculated by the company it's not a standard calculation rule, but it's calculated based on some other rules defined by the company.&lt;/P&gt;&lt;P&gt;for each date there is a comparable day , i can't apply&amp;nbsp;&lt;SPAN&gt;addmonths(max(Date)-1,-12) for 2019-08-06 because the comparable day won't be equal to 2018-08-07&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="com.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16668i33F042C07F2B03E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="com.PNG" alt="com.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 11:05:39 GMT</pubDate>
    <dc:creator>zjalalacssi</dc:creator>
    <dc:date>2019-08-07T11:05:39Z</dc:date>
    <item>
      <title>Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610191#M45325</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have an issue displaying Two Kpis with different Dates on the same Row.&lt;/P&gt;&lt;P&gt;I have a calendar with these values:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calendar.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16664i85ECDD298568D399/image-size/small?v=v2&amp;amp;px=200" role="button" title="Calendar.PNG" alt="Calendar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This calendar is linked to my fact table using the Date field&lt;/P&gt;&lt;P&gt;i need to display a table with the following informations:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Kpis&lt;/TD&gt;&lt;TD&gt;Kpis Comparable Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-01-06&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;10&amp;nbsp; (2017-01-07)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Set Analysis i have 2 rows Displayed like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Kpis&lt;/TD&gt;&lt;TD&gt;Kpis Comparable Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-01-06&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017-01-07&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me figure it out please?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610191#M45325</guid>
      <dc:creator>zjalalacssi</dc:creator>
      <dc:date>2024-11-16T05:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610192#M45326</link>
      <description>&lt;P&gt;what is the expression you have used in second expression&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Kpis Comparable Date&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610192#M45326</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-08-07T10:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610193#M45327</link>
      <description>&lt;P&gt;The First one: sum({&amp;lt;[Date]={"$(v_MaxDate)"}&amp;gt;} KPI)&lt;/P&gt;&lt;P&gt;The second one:&amp;nbsp;sum({&amp;lt;[Date]={"$(v_MaxDateComp)"}&amp;gt;} KPI)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My Variables :&lt;/P&gt;&lt;P&gt;v_MaxDate=max(Date)&lt;/P&gt;&lt;P&gt;v_MaxDateComp=max(day_id_day_comp)&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610193#M45327</guid>
      <dc:creator>zjalalacssi</dc:creator>
      <dc:date>2019-08-07T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610195#M45328</link>
      <description>&lt;P&gt;Try to use two expression:&lt;/P&gt;&lt;P&gt;1 KPI: sum({&amp;lt;Date={"$(=max(Date))"}&amp;gt;}KPI)&lt;/P&gt;&lt;P&gt;2 KPI for prev day kpi: sum({&amp;lt;Date={"$(=max(Date)-1)"}&amp;gt;&amp;lt;date={"$(=max(date))"}&amp;gt;}KPI)&amp;lt;/date={"$(=max(date))"}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610195#M45328</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-08-07T10:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610196#M45329</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;It's not the previous Day, it's a comparable day of last year.&lt;/P&gt;&lt;P&gt;Example: for: &lt;FONT color="#993300"&gt;06&lt;/FONT&gt;/07/&lt;FONT color="#993300"&gt;2019 &lt;/FONT&gt;the comparable day is: &lt;FONT color="#FF9900"&gt;07&lt;/FONT&gt;/07/&lt;FONT color="#FF6600"&gt;2018&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610196#M45329</guid>
      <dc:creator>zjalalacssi</dc:creator>
      <dc:date>2019-08-07T10:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610204#M45330</link>
      <description>&lt;P&gt;ok so try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Date={"$(=date(addmonths(max(Date)-1,-12),'MM/DD/YYYY'))"}&amp;gt;}KPI)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610204#M45330</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-08-07T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610210#M45331</link>
      <description>&lt;P&gt;The hard part is that the Comparable day is already calculated by the company it's not a standard calculation rule, but it's calculated based on some other rules defined by the company.&lt;/P&gt;&lt;P&gt;for each date there is a comparable day , i can't apply&amp;nbsp;&lt;SPAN&gt;addmonths(max(Date)-1,-12) for 2019-08-06 because the comparable day won't be equal to 2018-08-07&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="com.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16668i33F042C07F2B03E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="com.PNG" alt="com.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610210#M45331</guid>
      <dc:creator>zjalalacssi</dc:creator>
      <dc:date>2019-08-07T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610229#M45332</link>
      <description>&lt;P&gt;can you post the sample app. There are many factors that your expression is not working as expected&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610229#M45332</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-08-07T11:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610251#M45335</link>
      <description>&lt;P&gt;Yes, here is a sample app of my data&lt;/P&gt;&lt;P&gt;the result i'm trying to have is:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Sum(Nbcust)&lt;/TD&gt;&lt;TD&gt;Sum(Nbcust) Comparable Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-06&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-05&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-04&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;TD&gt;44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-03&lt;/TD&gt;&lt;TD&gt;87&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-02&lt;/TD&gt;&lt;TD&gt;46&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-01&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-08-07&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-08-06&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-08-05&lt;/TD&gt;&lt;TD&gt;44&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-08-04&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018-08-03&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 12:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610251#M45335</guid>
      <dc:creator>zjalalacssi</dc:creator>
      <dc:date>2019-08-07T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610472#M45355</link>
      <description>&lt;P&gt;this is not possible with the set analysis and the workaround will be through script.&lt;/P&gt;&lt;P&gt;Please find the attached file for the same. You need to join the comparable date again with the date and calculate the total sum where max date will be equal to date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 05:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610472#M45355</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-08-08T05:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display the 2 KPI for the Current Date and the Comparable Date</title>
      <link>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610532#M45365</link>
      <description>&lt;P&gt;Thank you very much for taking the time to help me, i will test your solution on my app (since i have a more complex modele) and let you know soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-the-2-KPI-for-the-Current-Date-and-the-Comparable-Date/m-p/1610532#M45365</guid>
      <dc:creator>zjalalacssi</dc:creator>
      <dc:date>2019-08-08T07:52:20Z</dc:date>
    </item>
  </channel>
</rss>

