<?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 Show Prior Year Sales in Current Year Column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-Prior-Year-Sales-in-Current-Year-Column/m-p/2144078#M93078</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This sounds like a relatively easy request, but the challenge is I'm showing a bunch of metrics in a single table against a target. Both Current Year (CY) and Prior Year (PY) are required by the business as rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table would look like the below ideally:&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="98.14633997475227%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="39px"&gt;Orders&lt;/TD&gt;
&lt;TD width="50%" height="39px"&gt;
&lt;P&gt;2023 Dec&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;Current Year&lt;/TD&gt;
&lt;TD height="24px"&gt;150&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Target&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;125&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Prior Year&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;115&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use a canonical type calendar in our apps as many of our objects use dates from over 10 types (lead, campaign, order, revenue recognition, AR, etc) so we can use a common date axis with many KPIs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long story short, how would I get Prior year to show 2022 Dec #s on a table with 2023 Dec as the Month of the calendar? If it helps, in our set expressions we use a field created in the calendar called CurrentMonthID. Current month is 0, 12 months ago is -12, etc. Makes it simple for flagging and date ranges with fiscal calendars.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 20:35:20 GMT</pubDate>
    <dc:creator>TRusso</dc:creator>
    <dc:date>2023-12-04T20:35:20Z</dc:date>
    <item>
      <title>Show Prior Year Sales in Current Year Column</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Prior-Year-Sales-in-Current-Year-Column/m-p/2144078#M93078</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This sounds like a relatively easy request, but the challenge is I'm showing a bunch of metrics in a single table against a target. Both Current Year (CY) and Prior Year (PY) are required by the business as rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table would look like the below ideally:&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="98.14633997475227%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="39px"&gt;Orders&lt;/TD&gt;
&lt;TD width="50%" height="39px"&gt;
&lt;P&gt;2023 Dec&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;Current Year&lt;/TD&gt;
&lt;TD height="24px"&gt;150&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Target&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;125&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="24px"&gt;Prior Year&lt;/TD&gt;
&lt;TD width="50%" height="24px"&gt;115&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use a canonical type calendar in our apps as many of our objects use dates from over 10 types (lead, campaign, order, revenue recognition, AR, etc) so we can use a common date axis with many KPIs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long story short, how would I get Prior year to show 2022 Dec #s on a table with 2023 Dec as the Month of the calendar? If it helps, in our set expressions we use a field created in the calendar called CurrentMonthID. Current month is 0, 12 months ago is -12, etc. Makes it simple for flagging and date ranges with fiscal calendars.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 20:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Prior-Year-Sales-in-Current-Year-Column/m-p/2144078#M93078</guid>
      <dc:creator>TRusso</dc:creator>
      <dc:date>2023-12-04T20:35:20Z</dc:date>
    </item>
  </channel>
</rss>

