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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
alan_grn
Creator II
Creator II

Text color in Pivot Label with Set Analysis

I have a pivot table with the following :

Dimension : ProductName

Expression :=Sum({$<DisplayProduct ={'1'}>} Sales )

With the above it only shows the products which are tagged as DisplayProduct = 1.

I then add to the expression Text Color :

=if(ProductName='Widget',White(),Black())

The table then changes and displays items even where the DisplayProduct flag is not equal to 1.

What do I need to do to get this to work?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try

=if( only({<DisplayProduct = {1}>} ProductName) ='Widget',White(),Black())

View solution in original post

1 Reply
swuehl
Champion III
Champion III

Try

=if( only({<DisplayProduct = {1}>} ProductName) ='Widget',White(),Black())