<?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: Sum same period last year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481141#M100795</link>
    <description>&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;for Current month Current Year&lt;/P&gt;
&lt;P&gt;Chart &amp;gt; Table&lt;/P&gt;
&lt;P&gt;Dimension -&amp;nbsp;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Measure -&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Data={"&amp;gt;=$(=MonthStart(Today()))&amp;lt;=$(=MonthEnd(Today()))"},Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} &amp;gt;} Valor1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;****************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for Current month Last Year&lt;/P&gt;
&lt;P&gt;Chart &amp;gt; Table&lt;/P&gt;
&lt;P&gt;Dimension -&amp;nbsp;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Measure -&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Data={"&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;=$(=MonthEnd(Today(),-12))"},Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} &amp;gt;} Valor1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashant Sangle&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 04:21:51 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2024-09-12T04:21:51Z</dc:date>
    <item>
      <title>Sum same period last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481123#M100792</link>
      <description>&lt;P&gt;I have this dataset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so for thisyear in the tabel i just put&lt;/P&gt;
&lt;P&gt;Date | Pool&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the dimention in date I put:&lt;/P&gt;
&lt;P&gt;=If(&lt;BR /&gt;Month(Data) = Month(Today()) and &lt;BR /&gt;Year(Data) = Year(Today()),&lt;BR /&gt;Date(Data, 'DD-MM-YYYY')&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;for the measure of pool:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} &amp;gt;} Valor1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;now i need another table with the same day-month-year of last year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date | Pool&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for Date i put:&lt;/P&gt;
&lt;P&gt;=If(&lt;BR /&gt;Month(Data) = Month(Today()) and &lt;BR /&gt;Year(Data) = Year(Today()),&lt;BR /&gt;AddYears(Data,-1)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it works just fine,&lt;/P&gt;
&lt;P&gt;but i cant seem to get the last years sum working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if i wanted to sum only the month I would do :&lt;/P&gt;
&lt;P&gt;=Sum(&lt;BR /&gt;{&amp;lt;[Data.ac.Ano] = {"&amp;gt;=$(=YearStart(Today(),-1))&amp;lt;=$(=Addmonths(Today(),-12))"}&amp;gt;}&lt;BR /&gt;Valor1&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but how can I put it to work with the days as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried many ways withouut success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 21:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481123#M100792</guid>
      <dc:creator>papacito</dc:creator>
      <dc:date>2024-09-11T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum same period last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481141#M100795</link>
      <description>&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;for Current month Current Year&lt;/P&gt;
&lt;P&gt;Chart &amp;gt; Table&lt;/P&gt;
&lt;P&gt;Dimension -&amp;nbsp;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Measure -&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Data={"&amp;gt;=$(=MonthStart(Today()))&amp;lt;=$(=MonthEnd(Today()))"},Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} &amp;gt;} Valor1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;****************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for Current month Last Year&lt;/P&gt;
&lt;P&gt;Chart &amp;gt; Table&lt;/P&gt;
&lt;P&gt;Dimension -&amp;nbsp;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Measure -&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Data={"&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;=$(=MonthEnd(Today(),-12))"},Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} &amp;gt;} Valor1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashant Sangle&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 04:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481141#M100795</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2024-09-12T04:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum same period last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481298#M100815</link>
      <description>&lt;P&gt;hi, thanks for you quick response, but it doesnt work in this scenario because i need it to work at day level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="Captura de tela 2024-09-12 100835.png" style="width: 553px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171603i116AA0382B49E521/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de tela 2024-09-12 100835.png" alt="Captura de tela 2024-09-12 100835.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 13:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481298#M100815</guid>
      <dc:creator>papacito</dc:creator>
      <dc:date>2024-09-12T13:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum same period last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481336#M100820</link>
      <description>&lt;P&gt;It will work. Might be need to do some changes.. like date format issue etc&lt;/P&gt;
&lt;P&gt;Can you share app or sample data, so that we will work on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 14:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481336#M100820</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2024-09-12T14:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum same period last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481367#M100826</link>
      <description>&lt;P&gt;I use Qlik sense bro, aint no file. if you could have a check on my computer like meets I would appreciate. (edited for privacy)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 19:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481367#M100826</guid>
      <dc:creator>papacito</dc:creator>
      <dc:date>2024-09-12T19:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum same period last year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481479#M100834</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/312740"&gt;@papacito&lt;/a&gt;&amp;nbsp; You need to create a calendar with all the Dates. I am assuming you already have calendar. below are the steps after creating calendar&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Calendar_Final:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Load Distinct Date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date as Period,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'CY' as Flag&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Resident Calendar;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Load Distinct Date as Period,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;addyears(Date,-1) as Date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'PY' as Flag&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Resident Calendar;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;You can Now create chart with below&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Dimension: Period&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;Expression:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&lt;SPAN&gt;Current year: &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&lt;SPAN&gt;Sum({&amp;lt;Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} , &lt;STRONG&gt;Flag={'CY'}&lt;/STRONG&gt;&amp;gt;} Valor1)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&lt;SPAN&gt;Same period last year: &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron"&gt;&lt;SPAN&gt;Sum({&amp;lt;Descricao = {'UHS DISPONÍVEIS','TOTAL OCUPAÇÃO'} , &lt;STRONG&gt;Flag={'PY'}&lt;/STRONG&gt;&amp;gt;} Valor1)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 09:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-same-period-last-year/m-p/2481479#M100834</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-13T09:32:19Z</dc:date>
    </item>
  </channel>
</rss>

