Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
khaycock
Creator
Creator

Expression to only show unmapped fields

I need an expression that removes all of the categories that have values but only shows the unmapped ones at the bottom for another table! Is it even possible?

cat.PNG

So I really only want to see the 939 values, nothing else.

Thanks!

1 Solution

Accepted Solutions
sunny_talwar

My bad... should be this

If(Len(Trim(Category)) = 0, 'Unmapped')

View solution in original post

6 Replies
sunny_talwar

May be change the Category dimensions to this

If(Len(Trim(Category)) = 0, 1, 0)

and then check 'Suppress When Value Is Null' on the dimensions tab

vishsaggi
Champion III
Champion III

What is your current expression? may be like

Dim: Category, Month

Expr:

= Sum({<Category = {"= Len(Trim(Category)) = 0"} >}Val)

Created some sample and got below is this what you are looking for?

khaycock
Creator
Creator
Author

cat 2.PNG

I changed the 1 to unmapped (and reloaded the data so there is now 1089 not 939) but what do I do about the 114 mapped to 0?

I also have suppressed the dimension when null and it didn't go..

khaycock
Creator
Creator
Author

Using this expression (with my appropriate field names) returned these results:

cat 3.PNG

sum({<CATEGORY= {"= Len(Trim(CATEGORY)) = 0"} >}SHIPPED_QUANTITY)

sunny_talwar

My bad... should be this

If(Len(Trim(Category)) = 0, 'Unmapped')

vishsaggi
Champion III
Champion III

Did you suppress 0 values in your Presentation tab? And if possible can you share your sample file. Did you try Sunny's updated expr?