<?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: show this years and last years figures on same line in table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552478#M39818</link>
    <description>Thanks all for your input &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
    <pubDate>Tue, 05 Mar 2019 15:32:42 GMT</pubDate>
    <dc:creator>Davidoff</dc:creator>
    <dc:date>2019-03-05T15:32:42Z</dc:date>
    <item>
      <title>show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551632#M39769</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am displaying sales, profit etc in columns of a table and grouping the rows by Season. I am required to show the values for the previous year in the same row, but different columns.&lt;/P&gt;&lt;P&gt;Problem is, the previous year data shows in a different Season group, because I am looking at the previous years data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Season Group expression:&lt;/P&gt;&lt;P&gt;=AGGR(ONLY({$&amp;lt;F_Year_Week={"$(vSelectedYears)"}, WK={"$(vSelectedWeeks)"}&amp;gt;} StockSeason), StockSeason)&lt;/P&gt;&lt;P&gt;Example of one of previous years column expression:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;SalesType={'Sale'}, FP_MD={'FP'}, F_Year_Week ={"$(vPrevSelectedYear)"}, WK={"$(vSelectedWeeks)"}&amp;gt;} Price)&lt;/P&gt;&lt;P&gt;All data selection is controlled by a date island and selections on screen are stored in the vSelectedYears &amp;amp; vSelectedWeeks variables. vPrevSelectedYear is derived from vSelectedYears.&lt;/P&gt;&lt;P&gt;App works fine, but shows the previous year info in a different season group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your expertise and any assistance is much appreciated.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551632#M39769</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2024-11-16T21:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551660#M39771</link>
      <description>can you provide some sample data with expected output.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant sangle</description>
      <pubDate>Mon, 04 Mar 2019 10:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551660#M39771</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-03-04T10:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551674#M39772</link>
      <description>&lt;P&gt;Hi Prashant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply. Does this help (attached)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551674#M39772</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T11:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551675#M39773</link>
      <description>&lt;P&gt;example data..&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551675#M39773</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551677#M39774</link>
      <description>all fields are coming from single table or multiple table.&lt;BR /&gt;If it is coming from single table then move your logic in script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant Sangle</description>
      <pubDate>Mon, 04 Mar 2019 11:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551677#M39774</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-03-04T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551680#M39775</link>
      <description>&lt;P&gt;Multiple tables.&lt;/P&gt;&lt;P&gt;I don't think i could move the logic into the load script; it needs to be dynamic, depending on what date range user selects. plus there are additional columns for stock, coming from another table. And the date island table of course.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551680#M39775</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551719#M39776</link>
      <description>&lt;P&gt;guys / gals,&lt;/P&gt;&lt;P&gt;am i wrong here? Can the expressions be put in the load script when the date ranges are selected in the UI by the user? And these ranges select records in date island?&lt;/P&gt;&lt;P&gt;Happy to accept I'm being thick here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 12:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551719#M39776</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T12:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551741#M39777</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;Please attache sample data. You can anonymous the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 12:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551741#M39777</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2019-03-04T12:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551766#M39779</link>
      <description>&lt;P&gt;Hi Gabriel,&lt;/P&gt;&lt;P&gt;hows this?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 13:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551766#M39779</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T13:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551811#M39780</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;Your filters in the expression has to be same except for&amp;nbsp;vSelectedYears &amp;amp;&amp;nbsp;vPrevSelectedYear. Try that and let me know&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 14:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551811#M39780</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2019-03-04T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551824#M39782</link>
      <description>&lt;P&gt;Hi Gabriel,&lt;/P&gt;&lt;P&gt;which expression? Can you elaborate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 14:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551824#M39782</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551906#M39784</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;in script you can concatenate the same transaction table by using addyears() on transaction date.&lt;BR /&gt;Logic can be&lt;BR /&gt;&lt;BR /&gt;consider following example&lt;BR /&gt;TestData:&lt;BR /&gt;Load Date,Product,Sales Inline [&lt;BR /&gt;Date,Product,Sales&lt;BR /&gt;1-Jan-2018,A,100&lt;BR /&gt;1-Feb-2018,A,200&lt;BR /&gt;1-Mar-2018,B,200&lt;BR /&gt;1-Apr-2018,B,150&lt;BR /&gt;];&lt;BR /&gt;concatenate&lt;BR /&gt;Load AddYears(Date,1) as Date,Product,Sales as Previous_Sale&lt;BR /&gt;Resident TestData;&lt;BR /&gt;&lt;BR /&gt;Use Previous_Sale field to show Previous Year Sale of That Product.&lt;BR /&gt;&lt;BR /&gt;Hope that help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant Sangle</description>
      <pubDate>Mon, 04 Mar 2019 15:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551906#M39784</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-03-04T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551931#M39790</link>
      <description>&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping you wouldn't say that&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.qlik.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Yes I think I'll have to load in again and add last years sale price to each record.&lt;/P&gt;&lt;P&gt;Wouldn't AddYears be -1 though?&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551931#M39790</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-04T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551934#M39791</link>
      <description>No, it must be +1.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant</description>
      <pubDate>Mon, 04 Mar 2019 16:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1551934#M39791</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-03-04T16:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552281#M39808</link>
      <description>&lt;P&gt;Ah yes, I see what you mean &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 10:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552281#M39808</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-05T10:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552351#M39813</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;To complicate matters, I have tried to union a second load of the Sales dataset, but there could be 0,1 or many records for the same ProductID and date 1 year ago.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load fails however I try to load it (SUM(Price), GROUP BY ProductID etc. Any other ideas Qliksters?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 12:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552351#M39813</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-05T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552413#M39815</link>
      <description>&lt;P&gt;So I have had to give in and load the complete Sales dataset a second time to try and resolve the issue.&lt;/P&gt;&lt;P&gt;This does feel like an inelegant solution given Qlik's power. I had hoped there would be some set expression magic I could use here.&amp;nbsp;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://community.qlik.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 13:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552413#M39815</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-05T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: show this years and last years figures on same line in table</title>
      <link>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552478#M39818</link>
      <description>Thanks all for your input &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-this-years-and-last-years-figures-on-same-line-in-table/m-p/1552478#M39818</guid>
      <dc:creator>Davidoff</dc:creator>
      <dc:date>2019-03-05T15:32:42Z</dc:date>
    </item>
  </channel>
</rss>

