Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Bettegowda
Contributor II
Contributor II

Denominator Total Value to get Percentage on Aggr Value

Hi,

I'm looking for help, Trying to get percentage value in the Pivot table.

Numerator is

Sum({<Dimension1 = {"=Aggr(Sum( MeasureColumn), Dimenstion1) >= 50"}>} MeasureColumn)

Can you please help getting the Denominator to get the total row level value for Dimension1

I used Total; however this is returning Total Value for the entire Dimension column

Sum(Total {<Dimension1 = {"=Aggr(Sum( MeasureColumn), Dimension1) >= 50"}>} MeasureColumn) (190)

 
  Dimension3
  ABC BCD CDE 
Dimension1Dimension2 (Aggr Value - Total Measure 1)Measure ValueMeasure %Measure ValueMeasure %Measure ValueMeasure %
A160610%1220%4270%
A2801620%1620%4860%
A3502550%1020%1530%

 

Looking for expression to get Measure%

 

Thank you for helping.

3 Replies
gavinlaird
Contributor III
Contributor III

You can put a dimension in <> brackets to not disregard that dimension in the "TOTAL" calculation:

Sum( {<Dimension1 = {"=Aggr(Sum( MeasureColumn), Dimension1) >= 50"}>} Total <Dimension1> MeasureColumn)

 

Bettegowda
Contributor II
Contributor II
Author

Thanks for the reply, I tried using <>  it looks like it is returning the numerator value not the total.

Kushal_Chawda

try this

Nr

Sum({<Dimension1 = {"=Sum( MeasureColumn)>= 50"}>} MeasureColumn)

Dr

sum(total aggr(if(Sum( MeasureColumn)>= 50,sum(MeasureColumn),0),Dimension1 ))