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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Roberto03
Contributor II
Contributor II

Sum in pivot table with multiple dimensions

hi, 

i have a pivot table with 3 dimensions (AREA,Denominazione,DATA_CALENDARIO).

As you can see in the first row (first dimensione total) now there is the min (-100) of the below levels

Roberto03_0-1673532874372.png

this is the current function

if(dimensionality() = 1,
min( total <AREA,Denominazione,DATA_CALENDARIO> Aggr(

SOGLIAKPI_E - rangesum(above(total COUNT( DISTINCT {<RANGEABILITY_ANOMALIA_SNAM={'1'}>} HTM_DATA_CAMPIONAMENTO)/4/24, 0, rowno()))

, AREA,Denominazione, (DATA_CALENDARIO, (Ascending))))
,
if(dimensionality() = 2,
min( total <Denominazione,DATA_CALENDARIO> Aggr(
SOGLIAKPI_E - rangesum(above(total COUNT( DISTINCT {<RANGEABILITY_ANOMALIA_SNAM={'1'}>} HTM_DATA_CAMPIONAMENTO)/4/24, 0, rowno()))
, Denominazione, (DATA_CALENDARIO, (Ascending))))
,if( dimensionality()= 3,
SOGLIAKPI_E - rangesum(above(total COUNT( DISTINCT {<RANGEABILITY_ANOMALIA_SNAM={'1'}>} HTM_DATA_CAMPIONAMENTO)/4/24, 0, rowno()))
))
)

hovewer, in the first row I would like to add the total of the second levels if these are lower than zero (-13,-20-100)

thanks

Roberto

 

Labels (1)
0 Replies