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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Manni_SM
Creator
Creator

disable expression level

 

Hi All,

@rubenmarin  @Vegar 

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 .

Labels (2)
1 Solution

Accepted Solutions
marcus_sommer

You may try to hide them by querying the dimensionality(), maybe like:

if(match(dimensionality(), 1, 2), null(), MyExpression)

View solution in original post

12 Replies
PrashantSangle

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

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
marcus_sommer

You may try to hide them by querying the dimensionality(), maybe like:

if(match(dimensionality(), 1, 2), null(), MyExpression)

Manni_SM
Creator
Creator
Author

Hi @marcus_sommer  its working but i can see null value in place of subtotals how i can disable those?

Manni_SM_0-1771421213567.png

 

PrashantSangle

ohh.. Yes.. I forgot we can achieve it with Dimensionality().

 

if(Dimensionality()=1,' ', <your_expression>)

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

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.

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Manni_SM
Creator
Creator
Author

i tried it looks ok but i can see null values in subtotal values how to disable those ?

PrashantSangle

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

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Manni_SM
Creator
Creator
Author

Hi @PrashantSangle 

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 ?)

Manni_SM_0-1771426259638.png

 

marcus_sommer

Within the object-properties should be options to hide NULL and/or ZERO.