<?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: Measure not showing values when drilling down in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738493#M56459</link>
    <description>&lt;P&gt;It will be easy if you are able to share a sample where we can see the issue&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 14:19:11 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-08-25T14:19:11Z</dc:date>
    <item>
      <title>Measure not showing values when drilling down in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738488#M56458</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;There is this pivot table below, which, when we try drilling down on Variation Column, the calculated rows are empty:&lt;/P&gt;&lt;P&gt;This is the Pivot Table before drill-down:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;2020-Goal&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;2020-Actual&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;2020-Var&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;Revenue&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;1000&lt;/TD&gt;&lt;TD width="25%"&gt;900&lt;/TD&gt;&lt;TD width="25%"&gt;-100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;Volume&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;10&lt;/TD&gt;&lt;TD width="25%"&gt;9&lt;/TD&gt;&lt;TD width="25%"&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&lt;STRONG&gt;Unit Price&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;100&lt;/TD&gt;&lt;TD width="25%"&gt;80&lt;/TD&gt;&lt;TD width="25%"&gt;-20&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This is how Unit Price row is calculated (measure):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if([Description]='Unit Price',
if(WildMatch([Fact],'*Var'),Above(Sum(Revenue),1)/Above(Sum(Volume),1) - Above(Sum(Revenue),2)/Above(Sum(Volume),2),
Sum(Revenue)/Sum(Volume))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the user drills down on 2020-Goal or 2020-Actual, it shows the values by month and they are all correct. However, when the drill down is on 2020-Var, then Revenue and Volume are correct, but the calculated row (Unit Price) is empty.&lt;/P&gt;&lt;P&gt;Edited it to add the part of the script that creates the Fact 2020-Var:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;VarTable:

Load
"Ano",
"Mês2",
"FACT",
[Value] as [Value GOAL],
[Volume] as [Volume GOAL],
[Unit Price] as [Unit Price GOAL]

Resident FirstTable

where WildMatch("Fact",'*GOAL*');

Concatenate (VarTable)
Load
"Ano",
"Mês2",
"FACT",
[Value] as [Value ACTUAL],
[Volume] as [Volume ACTUAL],
[Unit Price] as [Unit Price ACTUAL]

Resident FirstTable

where WildMatch("Fact",'*ACTUAL*');

Concatenate (FinalTable)

Load
"Ano",
"Mês2",
"Ano" &amp;amp; '-' &amp;amp; 'Variação' as "Fact",
Sum([Value ACTUAL]) - Sum([Value GOAL]) as "Value" ,
Sum([Volume ACTUAL]) - Sum([Volume GOAL]) as "Volume",
Sum([Revenue ACTUAL]) - Sum([Revenue GOAL]) as "Revenue",
Sum(Unit Price ACTUAL]) - Sum([Unit Price GOAL]) as [Unit Price]&lt;/LI-CODE&gt;&lt;P&gt;Any idea as to how to tackle this one?&lt;/P&gt;&lt;P&gt;I appreciate your time!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738488#M56458</guid>
      <dc:creator>asantos</dc:creator>
      <dc:date>2024-11-16T01:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not showing values when drilling down in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738493#M56459</link>
      <description>&lt;P&gt;It will be easy if you are able to share a sample where we can see the issue&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738493#M56459</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-25T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not showing values when drilling down in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738496#M56460</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;! Thanks for your response!&lt;/P&gt;&lt;P&gt;I wish there'd be an easy way, but I don't have any way to download the sheet/file + the data is confidential.&lt;/P&gt;&lt;P&gt;I'm not working on the desktop version...&lt;/P&gt;&lt;P&gt;I'll add how the 2020-Var is created within the script, if that helps think of where the flaw sits.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-showing-values-when-drilling-down-in-a-pivot-table/m-p/1738496#M56460</guid>
      <dc:creator>asantos</dc:creator>
      <dc:date>2020-08-25T14:27:41Z</dc:date>
    </item>
  </channel>
</rss>

