<?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: Pivot Table: Compare Amount for Two Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733590#M720900</link>
    <description>&lt;P&gt;Hi Ankhi,&lt;/P&gt;&lt;P&gt;you can use a feature called Alternate States:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The idea is that an Alternate State will "duplicate" the data model and selections in this alternate state will not interfere in the default one.&lt;/P&gt;&lt;P&gt;So :&lt;/P&gt;&lt;P&gt;1. create an alternate state "Alt1" (Document Properties&amp;gt;General&amp;gt;Alternate States button)&lt;/P&gt;&lt;P&gt;2. create a list box and use the&amp;nbsp;&lt;STRONG&gt;same Fiscal_Date field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. set this filter pane to "Alt1" (Object Properties&amp;gt;General&amp;gt;Alternate State dropdown)&lt;/P&gt;&lt;P&gt;4. add an expression to the pivot table by using set analysis such as:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Cost Status]={'ACT'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FISCAL_DATE] = {"&amp;lt;=$(=max({Alt1} FISCAL_DATE))"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 21:49:53 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2020-08-05T21:49:53Z</dc:date>
    <item>
      <title>Pivot Table: Compare Amount for Two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733570#M720899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one please help me with the below requirement?&lt;/P&gt;&lt;P&gt;I have a pivot table with dimensions &lt;STRONG&gt;Category and Programme&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The measures are &lt;STRONG&gt;Actuals,TRC, Actuals + TRC,&amp;nbsp; Actuals+TRC (to be compared).&lt;/STRONG&gt; There is a date filter in the sheet called &lt;STRONG&gt;Fiscal_Date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Expression I am using is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actuals&lt;/STRONG&gt;=Sum({&amp;lt;&lt;BR /&gt;[Cost Status]={'ACT'},&lt;BR /&gt;[FISCAL_DATE] = {"&amp;lt;=$(=max(FISCAL_DATE))"}&lt;BR /&gt;&amp;gt;}Amount)(as&amp;nbsp; I want to sum all the amount till the date selected in the filter).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly I have same expression for TRC. And Actuals +TRC. (Sum of Actuals and TRC)&lt;/P&gt;&lt;P&gt;Now I want to add another date filter e.g &lt;STRONG&gt;Fiscal_Date_Comparision&lt;/STRONG&gt; in the sheet. And want to calculate&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Actuals+TRC (to be compared)&lt;/STRONG&gt; taking the date value from &lt;STRONG&gt;Fiscal_Date_Comparison&lt;/STRONG&gt; filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The aim is to show Actuals+TRC for two different dates for comparison in the same table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please help me to understand how can I add another date filter using the same date field and do the calculation for &lt;STRONG&gt;Actuals+TRC(to be compared)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733570#M720899</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2024-11-16T00:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table: Compare Amount for Two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733590#M720900</link>
      <description>&lt;P&gt;Hi Ankhi,&lt;/P&gt;&lt;P&gt;you can use a feature called Alternate States:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The idea is that an Alternate State will "duplicate" the data model and selections in this alternate state will not interfere in the default one.&lt;/P&gt;&lt;P&gt;So :&lt;/P&gt;&lt;P&gt;1. create an alternate state "Alt1" (Document Properties&amp;gt;General&amp;gt;Alternate States button)&lt;/P&gt;&lt;P&gt;2. create a list box and use the&amp;nbsp;&lt;STRONG&gt;same Fiscal_Date field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. set this filter pane to "Alt1" (Object Properties&amp;gt;General&amp;gt;Alternate State dropdown)&lt;/P&gt;&lt;P&gt;4. add an expression to the pivot table by using set analysis such as:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Cost Status]={'ACT'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FISCAL_DATE] = {"&amp;lt;=$(=max({Alt1} FISCAL_DATE))"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 21:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733590#M720900</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-05T21:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table: Compare Amount for Two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733686#M720901</link>
      <description>&lt;P&gt;Hi Fosuzuki,&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply. I&amp;nbsp; tried and it is working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know how to update the label using it. For e.g for the 1st Amount + TRC&lt;/P&gt;&lt;P&gt;I am using label like&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Right([FISCAL_DATE],6) &amp;amp; ' Actuals'.&lt;/P&gt;&lt;P&gt;Similarly for the new expression as you have mentioned below I would also like to label it using the above expression so that the users know which date it is comparing against.&lt;/P&gt;&lt;P&gt;=&amp;nbsp;Right({Alt1}[FISCAL_DATE],6) &amp;amp; ' Actuals'. But when I use this it gives me an error .&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 09:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733686#M720901</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2020-08-06T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table: Compare Amount for Two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733791#M720902</link>
      <description>&lt;P&gt;Why are you using the Right() function? What the date looks like in the field?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733791#M720902</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-06T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table: Compare Amount for Two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733802#M720903</link>
      <description>&lt;P&gt;Hi Fosuzuki,&lt;/P&gt;&lt;P&gt;Thanks again for getting back to me.&amp;nbsp; The date looks like 01-AUg-20 . I want to show only AUG-20 thats why I was using the right function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But even without the right function it is giving me error in expression.&lt;/P&gt;&lt;P&gt;I am writing this expression in the Label .&lt;/P&gt;&lt;P&gt;=({Alt1}[FISCAL_DATE]) &amp;amp; ' EAC'&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733802#M720903</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2020-08-06T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table: Compare Amount for Two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733879#M720904</link>
      <description>&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;So I think you should use:&lt;/P&gt;&lt;P&gt;right(max(&lt;SPAN&gt;FISCAL_DATE),6) &amp;amp; 'XXX'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;right(max({Alt1}FISCAL_DATE),6) &amp;amp; 'XXX'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 17:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Compare-Amount-for-Two-Dates/m-p/1733879#M720904</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-06T17:36:21Z</dc:date>
    </item>
  </channel>
</rss>

