Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Hide a null dimension but keep associated calculated measure.

Hi, I have a dimension that shows up as null but has quota information on it that I need. I want to hide the "-" but keep the 544,023 that shows up at the bottom. The problem I have is that if I click "suppress null values" under Model then the 544,023 is not calculated. How can I keep the amount in the null value but hide the null dimension itself?

 

ModelBrandQuota
CAPITALPLYO$0
DEVICEPLYO$0
DEVICECYNO0
OPTIONSPLYO$0
-CYNO$544,023
$544,023

So I want it to look like this:

 

Model

]BrandTotal Quota
CAPITALPLYO$0
DEVICEPLYO$0
DEVICECYNO$0
OPTIONSPLYO$0
$544,023
1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Please try using calculated dimensions

  1. Aggr(IF(isnull(Model),'',Model,Model)
  2. Aggr(IF(isnull(Model),'',Brand,Model,Brand)

View solution in original post

8 Replies
sunny_talwar

May be dimensionality() function can help you do that

How to use - Dimensionality()

Anonymous
Not applicable
Author

I actually am using dimensionality but it does not help with hiding the null value.

sunny_talwar

Would you be able to share a sample where you are doing this?

Clever_Anjos
Employee
Employee

Please try using calculated dimensions

  1. Aggr(IF(isnull(Model),'',Model,Model)
  2. Aggr(IF(isnull(Model),'',Brand,Model,Brand)
OmarBenSalem

Try as dimension:

=if(len(trim(Brand))=0,'',Brand)

result:

Capture.PNG

Anonymous
Not applicable
Author

Thank you! a variation of this worked for me.

Anonymous
Not applicable
Author

Thank you, Omar. The isnull expression above worked for me so I did not test this solution but I greatly appreciate the response!

Clever_Anjos
Employee
Employee

Cleaner with the new coalesce function

Aggr(Coalesce(Model,''))