<?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 get sales difference about weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2028595#M1222284</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ı need help for qliksense enterprise edition platform.&lt;/P&gt;
&lt;P&gt;ı have pivot table for sales persons, country, salesweeks data.&lt;/P&gt;
&lt;P&gt;sales person and country is dimension and rows.&lt;/P&gt;
&lt;P&gt;salesweeks is a column, measure is price in pivot table.&lt;/P&gt;
&lt;P&gt;WEEK1 WEEK2 WEEK3 WEEK4 WEEK5 in below picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ı need to calculate WEEK1-WEEK2 price, WEEK2-WEEK3 price , calculate difference gap&lt;/P&gt;
&lt;P&gt;how can I do this in frontend, please help me.&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sedalinda_0-1674410568530.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98580i20B2765A6C8B6AD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sedalinda_0-1674410568530.png" alt="sedalinda_0-1674410568530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Jan 2023 18:05:40 GMT</pubDate>
    <dc:creator>sedalinda</dc:creator>
    <dc:date>2023-01-22T18:05:40Z</dc:date>
    <item>
      <title>pivot table get sales difference about weeks</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2028595#M1222284</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ı need help for qliksense enterprise edition platform.&lt;/P&gt;
&lt;P&gt;ı have pivot table for sales persons, country, salesweeks data.&lt;/P&gt;
&lt;P&gt;sales person and country is dimension and rows.&lt;/P&gt;
&lt;P&gt;salesweeks is a column, measure is price in pivot table.&lt;/P&gt;
&lt;P&gt;WEEK1 WEEK2 WEEK3 WEEK4 WEEK5 in below picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ı need to calculate WEEK1-WEEK2 price, WEEK2-WEEK3 price , calculate difference gap&lt;/P&gt;
&lt;P&gt;how can I do this in frontend, please help me.&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sedalinda_0-1674410568530.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98580i20B2765A6C8B6AD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sedalinda_0-1674410568530.png" alt="sedalinda_0-1674410568530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 18:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2028595#M1222284</guid>
      <dc:creator>sedalinda</dc:creator>
      <dc:date>2023-01-22T18:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table get sales difference about weeks</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2030096#M1222356</link>
      <description>&lt;P&gt;You can use the "Expression Editor" in QlikSense to create a new measure that calculates the difference between the prices of consecutive weeks. Here's an example of how you can do this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Go to the "Properties" pane of your pivot table and select the "Expressions" tab.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Click on the "+" button to add a new expression.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Name the expression "Week1-Week2" and enter the following formula: =SUM(IF([Week] = 'Week1', [Price], 0)) - SUM(IF([Week] = 'Week2', [Price], 0))&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Create another expression and name it "Week2-Week3" and enter the following formula: =SUM(IF([Week] = 'Week2', [Price], 0)) - SUM(IF([Week] = 'Week3', [Price], 0))&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;You can also create another expression to calculate the difference gap between weeks by using the above expressions. =(Week1-Week2) - (Week2-Week3)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Add the new expressions to the pivot table by dragging them from the "Expressions" tab to the "Columns" or "Rows" sections.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You should now have a pivot table that shows the difference in prices between consecutive weeks for each salesperson and country.&lt;/P&gt;
&lt;P&gt;Please note that this is just an example, you might want to adjust the formula according to your data and needs.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 21:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2030096#M1222356</guid>
      <dc:creator>jcmachado</dc:creator>
      <dc:date>2023-01-25T21:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table get sales difference about weeks</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2031132#M1222414</link>
      <description>&lt;P&gt;than you very much. In same time I user before script for do this.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 12:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-get-sales-difference-about-weeks/m-p/2031132#M1222414</guid>
      <dc:creator>sedalinda</dc:creator>
      <dc:date>2023-01-28T12:56:00Z</dc:date>
    </item>
  </channel>
</rss>

