<?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: iam not getting previous year data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450106#M97896</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;, Thanks for the reply,&lt;/P&gt;
&lt;P&gt;for below formula,&amp;nbsp; same i need to take distinct amount for each tkt code. previously iam using below formula.&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;tkt_Year=,MonthYear=,[tkt_date]={$(PY)}&amp;gt;} amount),&lt;/P&gt;
&lt;P&gt;now iam trying tried below formula to take&amp;nbsp;distinct amount for each tkt code&lt;/P&gt;
&lt;P&gt;Sum(Aggr({&amp;lt;tkt_Year=,MonthYear=,[tkt_date]={$(PY)}&amp;gt;} distinct amount,tkt_code))&lt;/P&gt;
&lt;P&gt;this one again giving current yeay data . i have selected month year- dec-2023, nov-2023, previous year data is dec-2022, nov 2022, bit it is giving again&amp;nbsp;dec-2023, nov-2023 same data, in the below screenshots&amp;nbsp; we can see. Please help me. didn't why again it is cy year data slection&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_0-1715146562607.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165682i204AAB14DCCC4AD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_0-1715146562607.png" alt="Swathi_0-1715146562607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_1-1715146675874.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165683iC342D33473C87547/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_1-1715146675874.png" alt="Swathi_1-1715146675874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;in the below formula&amp;nbsp; it is same previous year data is not coming&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} amount)- previous using formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;current tried formula- but not getting previous year data. please help&lt;/P&gt;
&lt;P&gt;Sum( Aggr(&lt;BR /&gt;only({&amp;lt;[MonthYear] = {"$(= '&amp;gt;=' &amp;amp; vLimitPrevious_Min &amp;amp; '&amp;lt;=' &amp;amp; vLimitPrevious_Max)"}&amp;gt;} amount),&lt;BR /&gt;tkt_code&lt;BR /&gt;))&lt;BR /&gt;))&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 05:53:55 GMT</pubDate>
    <dc:creator>Swathi</dc:creator>
    <dc:date>2024-05-08T05:53:55Z</dc:date>
    <item>
      <title>iam not getting previous year data</title>
      <link>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2449868#M97874</link>
      <description>&lt;P&gt;i have tkt_code, amount, cm2, cost of extras like so many columns are there.&amp;nbsp; recently for new developemnt we have ew materail and materail desc, because of each tktcode have have different materail description., suppose one tkt code has 6 materaildesc, i have 6 rows of data for each tktcode, amount, cm2 is also same value repeat 6 time beacuse of 6 rows of tkt code lines.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;previously directly sum(amount) , it will give vlaue, now i will take same formula if will high value, with same values repeted so many times, so that i need to take sum( distinct amount) for each tkt code. iam using below it is working fine.&lt;/P&gt;
&lt;P&gt;Sum(Aggr(Only(amount), tkt_code))&lt;/P&gt;
&lt;P&gt;i have created mastercalender in data load editor and have period in that have ytd , mtd, qtd,month year. for my ytd is default state always.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;iam using below formula. to ytd data&lt;/P&gt;
&lt;P&gt;Previously formula before adding materail description using below formula to get cytd and pytd data- both are working fine&lt;/P&gt;
&lt;P&gt;sum({1&amp;lt;CYTD ={1}&amp;gt;}amount),&amp;nbsp;sum({1&amp;lt;PYTD ={1}&amp;gt;}amount),&lt;/P&gt;
&lt;P&gt;now iam using below below formula&lt;/P&gt;
&lt;P&gt;Sum(Aggr(Only({1&amp;lt;CYTD ={1}&amp;gt;} amount), tkt_code)) - working fine&lt;/P&gt;
&lt;P&gt;sum({1&amp;lt;PYTD ={1}&amp;gt;}amount)- this formula still works fine, but i should n't use this it will giveworng results, i need&amp;nbsp; distinct amount of data for each code ticket code.&lt;/P&gt;
&lt;P&gt;Sum(Aggr(Only({1&amp;lt;PYTD ={1}&amp;gt;} amount), tkt_code)) - not getting data,&lt;/P&gt;
&lt;P&gt;Kindly help me to sort above formula, do i need to do any thing in the backend(dstatload editior) or in front end. i need to distinct sum of amount for each tkt code for previous YTD. iam attaching sample file. Please help me to resolve the issue&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2449868#M97874</guid>
      <dc:creator>Swathi</dc:creator>
      <dc:date>2024-11-15T20:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: iam not getting previous year data</title>
      <link>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450032#M97883</link>
      <description>&lt;P&gt;Perhaps&lt;/P&gt;
&lt;P&gt;Sum({1&amp;lt;PYTD={1}&amp;gt;} Aggr({1} Only({1} amount), tkt_code))&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 21:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450032#M97883</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-05-07T21:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: iam not getting previous year data</title>
      <link>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450106#M97896</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;, Thanks for the reply,&lt;/P&gt;
&lt;P&gt;for below formula,&amp;nbsp; same i need to take distinct amount for each tkt code. previously iam using below formula.&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;tkt_Year=,MonthYear=,[tkt_date]={$(PY)}&amp;gt;} amount),&lt;/P&gt;
&lt;P&gt;now iam trying tried below formula to take&amp;nbsp;distinct amount for each tkt code&lt;/P&gt;
&lt;P&gt;Sum(Aggr({&amp;lt;tkt_Year=,MonthYear=,[tkt_date]={$(PY)}&amp;gt;} distinct amount,tkt_code))&lt;/P&gt;
&lt;P&gt;this one again giving current yeay data . i have selected month year- dec-2023, nov-2023, previous year data is dec-2022, nov 2022, bit it is giving again&amp;nbsp;dec-2023, nov-2023 same data, in the below screenshots&amp;nbsp; we can see. Please help me. didn't why again it is cy year data slection&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_0-1715146562607.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165682i204AAB14DCCC4AD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_0-1715146562607.png" alt="Swathi_0-1715146562607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_1-1715146675874.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165683iC342D33473C87547/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_1-1715146675874.png" alt="Swathi_1-1715146675874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;in the below formula&amp;nbsp; it is same previous year data is not coming&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} amount)- previous using formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;current tried formula- but not getting previous year data. please help&lt;/P&gt;
&lt;P&gt;Sum( Aggr(&lt;BR /&gt;only({&amp;lt;[MonthYear] = {"$(= '&amp;gt;=' &amp;amp; vLimitPrevious_Min &amp;amp; '&amp;lt;=' &amp;amp; vLimitPrevious_Max)"}&amp;gt;} amount),&lt;BR /&gt;tkt_code&lt;BR /&gt;))&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 05:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450106#M97896</guid>
      <dc:creator>Swathi</dc:creator>
      <dc:date>2024-05-08T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: iam not getting previous year data</title>
      <link>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450468#M97927</link>
      <description>&lt;P&gt;Use the dollar sign expansion ($) to evaluate the variables within the modifier&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;...tkt_date= {"&amp;gt;=$(=Date(AddYears(YearStart(Max(tkt_date))),-1),'DD/MM/YYYY'))&amp;lt;=$(=Date(AddYears(Max(tkt_date),-1),'DD/MM/YYYY'))"}...&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 18:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/iam-not-getting-previous-year-data/m-p/2450468#M97927</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-05-08T18:22:42Z</dc:date>
    </item>
  </channel>
</rss>

