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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Remove rows using Calculated Dimension

Hello!

Could you please help me on how to remove rows in this (below) Pivot Table using a Calculated Dimension?

1.PNG

I want to remove GMM East and GMM West in Section 1, vice versa in Section 2, so the output will be like this (below) table:

2.PNG

GMMAREA is a data column from table file, while GMM1 and GMM are Inline loaded table. Attached is my script in .txt format.

Thank you!

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

Replace GMMAREA with this:

If(GMM = 'Section 1', If(WildMatch(GMMAREA, '*South', '*North'), GMMAREA),

If(GMM = 'Section 2', If(WildMatch(GMMAREA, '*East', '*West'), GMMAREA)))

View solution in original post

2 Replies
sunny_talwar

May be like this:

Replace GMMAREA with this:

If(GMM = 'Section 1', If(WildMatch(GMMAREA, '*South', '*North'), GMMAREA),

If(GMM = 'Section 2', If(WildMatch(GMMAREA, '*East', '*West'), GMMAREA)))

Not applicable
Author

This works. I checked Supress Null Values/Missing Values to exclude blank cells. Thanks!