<?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: Enter a second KPI with last months. in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152384#M242575</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1702458468722.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125321i725F56936CFCF431/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1702458468722.png" alt="migueldfr_23_0-1702458468722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the data, and we supposed we selected DECEMBER, NOVEMBER AND OCTOBER (SUM = 1000)&lt;/P&gt;
&lt;P&gt;second KPI should take AUTOMATICALLY months JULY, AUGUST AND SEPTEMBER (SUM=450)&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 09:15:30 GMT</pubDate>
    <dc:creator>migueldfr_23</dc:creator>
    <dc:date>2023-12-13T09:15:30Z</dc:date>
    <item>
      <title>Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152358#M242571</link>
      <description>&lt;P&gt;Hi group,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am facing a challenge task with my dashboard.&lt;/P&gt;
&lt;P&gt;I have a KPI showing the total user there are in the selected months&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1702455543335.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125314i3ACCEE77DDBA243C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1702455543335.png" alt="migueldfr_23_0-1702455543335.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now I would like to have second KPI showing the SUM of the previous months&amp;nbsp;to those selected. (just previous from the first selected in order by months)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_1-1702456499475.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125315iFD4879EB98D9CA40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_1-1702456499475.png" alt="migueldfr_23_1-1702456499475.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate any help.&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 08:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152358#M242571</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2023-12-13T08:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152368#M242573</link>
      <description>&lt;P&gt;you can achieve it using set analysis&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;date={"=$(=date(max(date)-1))"}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can customized as per your need. also to get more accurate answer, please provide some sample data &amp;amp; required output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 08:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152368#M242573</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-13T08:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152384#M242575</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1702458468722.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125321i725F56936CFCF431/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1702458468722.png" alt="migueldfr_23_0-1702458468722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the data, and we supposed we selected DECEMBER, NOVEMBER AND OCTOBER (SUM = 1000)&lt;/P&gt;
&lt;P&gt;second KPI should take AUTOMATICALLY months JULY, AUGUST AND SEPTEMBER (SUM=450)&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 09:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152384#M242575</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2023-12-13T09:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152416#M242580</link>
      <description>&lt;P&gt;find below snip.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PrashantSangle_0-1702462948367.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125326i00D6E915DFC94DE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PrashantSangle_0-1702462948367.png" alt="PrashantSangle_0-1702462948367.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Script&lt;/P&gt;
&lt;P&gt;Test:&lt;BR /&gt;Load Date,&lt;BR /&gt;Date(Date#('01/'&amp;amp;Date&amp;amp;'/2023','DD/MMM/YYYY')) as new_date,&lt;BR /&gt;Users Inline [&lt;BR /&gt;Date, Users&lt;BR /&gt;Jul, 200&lt;BR /&gt;Aug, 100&lt;BR /&gt;Sep, 150&lt;BR /&gt;Oct, 400&lt;BR /&gt;Nov, 500&lt;BR /&gt;Dec, 100&lt;BR /&gt;];&lt;BR /&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPI - For selected Months - Sum(Users)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPI - For Previous Months -&amp;nbsp;Sum({&amp;lt;Date=,new_date={"&amp;lt;$(=min(new_date))"}&amp;gt;} Users)&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 10:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152416#M242580</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-13T10:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152971#M242665</link>
      <description>&lt;P&gt;Sum({&amp;lt;Date={"&amp;gt;=$(=Date(MonthStart(AddMonths(MonthStart(min(Date)), -3))))&amp;lt;=$(=min(Date))"}, Users)&lt;BR /&gt;&lt;BR /&gt;This is showing up a value, but it is not what I want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 10:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2152971#M242665</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2023-12-14T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154199#M242927</link>
      <description>&lt;P&gt;I am not able to get the data in my case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am getting the data from Google Analytics and this has different structure...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;new_date={"&amp;gt;=$(=AddMonths(Max(new_date), -3))&amp;lt;=$(=AddMonths(Max(new_date)))"}, metric_type={'totalUsers'}, dimension={"no Dimension"}&amp;gt;} value)&lt;/LI-CODE&gt;
&lt;P&gt;but it showing up data, that is not useful for me.&lt;BR /&gt;&lt;BR /&gt;I want to show the data from last 3 month till teh minum selected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I appreciate any help. Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 15:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154199#M242927</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2023-12-18T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154223#M242932</link>
      <description>&lt;P&gt;RangeSum(Above(Sum({&amp;lt;metric_type={'totalUsers'}, dimension={"no Dimension"}, new_date -= {'*'}&amp;gt;} value), 0, RowNo(Total)))&lt;/P&gt;
&lt;P&gt;Incluso probando esta, me da valores que estan seleccionados,eso no lo quiero.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 16:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154223#M242932</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2023-12-18T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154345#M242951</link>
      <description>&lt;P&gt;use this&lt;/P&gt;
&lt;P&gt;First KPI :- sum(Users)&lt;/P&gt;
&lt;P&gt;Second KPI :- sum{1-$}Users)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ahidhar_0-1702966235407.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125699i7ACA51B7628447CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ahidhar_0-1702966235407.png" alt="Ahidhar_0-1702966235407.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 06:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154345#M242951</guid>
      <dc:creator>Ahidhar</dc:creator>
      <dc:date>2023-12-19T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enter a second KPI with last months.</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154531#M242982</link>
      <description>&lt;P&gt;This works, but not as in my case.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I have to filter this columns :&amp;nbsp;metric_type,&amp;nbsp;dimension by these values and then I can get the values I want.&lt;/P&gt;
&lt;P&gt;sum ( {1-$} {&amp;lt;metric_type={'totalUsers'}, dimension={"no Dimension"} value)&lt;/P&gt;
&lt;P&gt;by the way, this is Google Analytics&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 11:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Enter-a-second-KPI-with-last-months/m-p/2154531#M242982</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2023-12-19T11:30:48Z</dc:date>
    </item>
  </channel>
</rss>

