Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
DeepuMouni
Contributor
Contributor

Dynamically Calculated Measure to Plot TreeMap

Hi,

I am calculating a measure calculated dynamically based on other measures and has rangesum and after functions..is it possible to plot Treemap for this dynamically calculated measure?

Any hints or suggestions on this is much appreciated. Thank you!

Below Example is the dynamically calculated measure(JKQ) from ABC,XYZ & DEF and Using Rangesum and after

JKQ =

if(
Sum({$<[DATA_MEASURE]={'ABC'},WEEKLY_VERSION={'$(=vVersionselection)'}>}[VALUE])=0,0,
if(
RangeSum(after(Sum({$<[DATA_MEASURE]={'XYZ'},WEEKLY_VERSION={'$(=vVersionselection)'}>}[VALUE]),0,3))=0,99999,
if(
Sum({$<[DATA_MEASURE]={'ABC'},WEEKLY_VERSION={'$(=vVersionselection)'}>}[VALUE])<=0,0,
Sum({$<[DATA_MEASURE]={'ABC'},WEEKLY_VERSION={'$(=vVersionselection)'}>}[VALUE])
/
(
RangeSum(after(Sum({$<[DATA_MEASURE]={'XYZ'},WEEKLY_VERSION={'$(=vVersionselection)'}>}[VALUE]),0,3))
/
RangeSum(after(Sum( distinct {$<[DATA_MEASURE]={'DEF'},WEEKLY_VERSION={'$(=vVersionselection)'}>}[VALUE]),0,3)))
)
)
)

 

 

0 Replies