<?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 Pivot Table Add Column YoY By Month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1539310#M38929</link>
    <description>&lt;P&gt;Hello - I've searched the forums about this question but haven't arrived at a clear answer yet:&lt;/P&gt;&lt;P&gt;Say I have a pivot table that has one dimension as a row, and TWO columns: first by month (Jan, Feb, Mar), then by year. What I’m trying to do is calculate YoY within month. When I add an expression to the pivot table, it is calculating for each year, when I want it to calculate by month. Plus not 100% sure of the proper syntax.&lt;/P&gt;&lt;P&gt;The data has more than two years, so the calculated column has to be “smart” enough to handle whichever two years the user chooses.&lt;/P&gt;&lt;P&gt;Any ideas? Example of what the final pivot&amp;nbsp;table should look like - the first row is just for clarity indicating the month column.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Year1&lt;/TD&gt;&lt;TD&gt;Year2&lt;/TD&gt;&lt;TD&gt;YoY&lt;/TD&gt;&lt;TD&gt;Year1&lt;/TD&gt;&lt;TD&gt;Year2&lt;/TD&gt;&lt;TD&gt;Yoy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dimension value1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dimension value2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks for any tips you can provide!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:28:15 GMT</pubDate>
    <dc:creator>newuser</dc:creator>
    <dc:date>2024-11-16T21:28:15Z</dc:date>
    <item>
      <title>Pivot Table Add Column YoY By Month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1539310#M38929</link>
      <description>&lt;P&gt;Hello - I've searched the forums about this question but haven't arrived at a clear answer yet:&lt;/P&gt;&lt;P&gt;Say I have a pivot table that has one dimension as a row, and TWO columns: first by month (Jan, Feb, Mar), then by year. What I’m trying to do is calculate YoY within month. When I add an expression to the pivot table, it is calculating for each year, when I want it to calculate by month. Plus not 100% sure of the proper syntax.&lt;/P&gt;&lt;P&gt;The data has more than two years, so the calculated column has to be “smart” enough to handle whichever two years the user chooses.&lt;/P&gt;&lt;P&gt;Any ideas? Example of what the final pivot&amp;nbsp;table should look like - the first row is just for clarity indicating the month column.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Year1&lt;/TD&gt;&lt;TD&gt;Year2&lt;/TD&gt;&lt;TD&gt;YoY&lt;/TD&gt;&lt;TD&gt;Year1&lt;/TD&gt;&lt;TD&gt;Year2&lt;/TD&gt;&lt;TD&gt;Yoy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dimension value1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dimension value2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks for any tips you can provide!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1539310#M38929</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2024-11-16T21:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Add Column YoY By Month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1539572#M38948</link>
      <description>&lt;P&gt;there are some based on ROW&amp;nbsp;&lt;/P&gt;&lt;P&gt;using &lt;STRONG&gt;above&lt;/STRONG&gt; function try column 1/column2&lt;/P&gt;&lt;P&gt;there is function Column(1)/Column(2)&lt;/P&gt;&lt;P&gt;may be&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 11:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1539572#M38948</guid>
      <dc:creator>Channa</dc:creator>
      <dc:date>2019-02-05T11:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Add Column YoY By Month</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1540920#M39020</link>
      <description>&lt;P&gt;Tried that and got zeros. So am trying something different - the measure below I've added to return the amount for max year. I have it where month is the only column. The&amp;nbsp;expression "Yr"&amp;nbsp;has the year.&amp;nbsp;The set expression below&amp;nbsp;is not recognizing max year. Instead it is summing across all years. Any ideas?&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Yr={$(=max(Yr))}&amp;gt;&amp;nbsp; }amount)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-Add-Column-YoY-By-Month/m-p/1540920#M39020</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2019-02-07T13:47:10Z</dc:date>
    </item>
  </channel>
</rss>

