Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
i want to disable subtotal in pivot table from expression level how to do ?
i have 3 dimensions 2 expressions
Dimensions: A,B,C
measure1 : count(distinct id)
measure 2 : sum({<test={'y'}>} sales+profit)
how to avoid this subtotal in pivot table Qliksense .
You may try to hide them by querying the dimensionality(), maybe like:
if(match(dimensionality(), 1, 2), null(), MyExpression)
I believe there is no direction option to disable Total at expression (measure) level. You can control it at dimension level by go to property > select dimension > Show total > off.
but if you still want to achieve that then move that measure logic in back end & use it as dimension in front end.
Regards,
Prashant Sangle
You may try to hide them by querying the dimensionality(), maybe like:
if(match(dimensionality(), 1, 2), null(), MyExpression)
Hi @marcus_sommer its working but i can see null value in place of subtotals how i can disable those?
ohh.. Yes.. I forgot we can achieve it with Dimensionality().
if(Dimensionality()=1,' ', <your_expression>)
Regards,
Prashant Sangle
1st try with just adding Dimensionality() in measure, so that you will get to know that at which level you have to hide value & at which level you have show.
i tried it looks ok but i can see null values in subtotal values how to disable those ?
can you share screen shot of what you are trying?
Share screen shot with below
add your 3 dimension
measure 1: <your_first_expression>
measure 2: <your_second_expression>
measure 3: Dimensionality()
highlight which row you want replace with blank or null
Regards,
Prashant Sangle
measure 1: if(match(dimensionality(), 1, 2), null(), Count(distinct id)
measure2; if(match(dimensionality(), 1, 2), null(), SUM({<test={'Y'}>} sales + profit))
i have only two measures ( what to add in 3rd measure which you mentioned ?)
Within the object-properties should be options to hide NULL and/or ZERO.