<?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: Adding static expressions to a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754415#M506090</link>
    <description>&lt;P&gt;My Date field is dynamic - based on what month user selects, it gives all the dates for the month. So, I can't put all the dates in the custom dimension I create in the script.&lt;/P&gt;&lt;P&gt;Is there a way I create a custom dimension like below, but while using it, the value "Date" actually works like a dimension and gets expanded.&lt;/P&gt;&lt;P&gt;TestDim:&lt;BR /&gt;load *Inline&lt;BR /&gt;[TestDim&lt;BR /&gt;MTD 2019&lt;BR /&gt;MTD 2020&lt;BR /&gt;Date&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Currently, I am getting result like this - but instead of "Date", I want actual dates for the selected months&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhsharm5_0-1603275949908.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42708i1E8E24595EAED1A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhsharm5_0-1603275949908.png" alt="bhsharm5_0-1603275949908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 10:30:07 GMT</pubDate>
    <dc:creator>bhsharm5</dc:creator>
    <dc:date>2020-10-21T10:30:07Z</dc:date>
    <item>
      <title>Adding static expressions to a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754371#M506088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a pivot table like below, where I am measuring some performance by Region and State over every day of the selected month. Now I want to add three static measures/expressions here (which are not affected by the Date dimension on the column) to show performance in same month last year (say Oct 2019), full year 2019 and MTD performance ( Oct 2020).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pivot Table.JPG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42699i28EADCB568B03DDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pivot Table.JPG" alt="Pivot Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I simply add those expressions, the Date dimension on column doesn't let them be in a single column. I am expecting the output to be something like the image below - three additional columns along with the pivot above. Any suggestions, how to achieve this!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Required Pivot.JPG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42700i84237070B91C58CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Required Pivot.JPG" alt="Required Pivot.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754371#M506088</guid>
      <dc:creator>bhsharm5</dc:creator>
      <dc:date>2024-11-16T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static expressions to a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754384#M506089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/61513"&gt;@bhsharm5&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In order to achieve like attached image, you need to bring on dummy field in "Script" like below&lt;BR /&gt;Dim1:&lt;BR /&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Dim&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;];&lt;BR /&gt;&lt;BR /&gt;Then use the Dim in the chart Dimension instead of Date field like below&lt;BR /&gt;Pick(Match(Dim,1,2,3,4), 'MTD 2019', 'Full Year', 'MTD 2020', Date)&lt;BR /&gt;&lt;BR /&gt;Then In expression, you can write like below&lt;BR /&gt;Pick(Match(Dim,1,2,3,4), Your MTD 2019 formula, Your Full Year Formula, Your MTD 2020 Formula, Your current expression)&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 09:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754384#M506089</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-21T09:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static expressions to a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754415#M506090</link>
      <description>&lt;P&gt;My Date field is dynamic - based on what month user selects, it gives all the dates for the month. So, I can't put all the dates in the custom dimension I create in the script.&lt;/P&gt;&lt;P&gt;Is there a way I create a custom dimension like below, but while using it, the value "Date" actually works like a dimension and gets expanded.&lt;/P&gt;&lt;P&gt;TestDim:&lt;BR /&gt;load *Inline&lt;BR /&gt;[TestDim&lt;BR /&gt;MTD 2019&lt;BR /&gt;MTD 2020&lt;BR /&gt;Date&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Currently, I am getting result like this - but instead of "Date", I want actual dates for the selected months&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhsharm5_0-1603275949908.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42708i1E8E24595EAED1A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhsharm5_0-1603275949908.png" alt="bhsharm5_0-1603275949908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 10:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754415#M506090</guid>
      <dc:creator>bhsharm5</dc:creator>
      <dc:date>2020-10-21T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static expressions to a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754419#M506091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;Did you try with my solution??&amp;nbsp;&lt;BR /&gt;If its not work, Can you attach the sample data and sample qv file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 10:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754419#M506091</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-21T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static expressions to a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754452#M506092</link>
      <description>Thanks mate, it’s working &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍🏻&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bhaskar&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Oct 2020 12:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-static-expressions-to-a-pivot-table/m-p/1754452#M506092</guid>
      <dc:creator>bhsharm5</dc:creator>
      <dc:date>2020-10-21T12:08:30Z</dc:date>
    </item>
  </channel>
</rss>

