Skip to main content
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

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

View solution in original post

1 Reply
swuehl
MVP
MVP

Try

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