Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
HQPGPXS
Contributor
Contributor

Color Filtering on a Straight table

Hello,

I am working on filtering a straight table using a calculated background color conditions.    

Step 1:  First I created a calculated color filter dimension with values being "Green", "Yellow", and "Red" 

Script:

=Aggr(IF({<Country, Part number>}(Sum(Sales) - Total_Orders)  <=  0  OR  (Sum(Sales)  <=  0,  'Red',
              IF({<Country, Part number>}(Sum(Sales) - Total_Orders)  <  Total_Stocks  OR  Sum(Sales)   <  Total_Stocks , 'Yellow',
                        'Green')), Country, Part number)

HQPGPXS_0-1690300377559.png

 

 

Step 2:  I applied the same color condition scripts to create a background color on a Total Sales column in a straight table.

=Aggr(IF({<Country, Part number>}(Sum(Sales) - Total_Orders)  <=  0  OR  (Sum(Sales)  <=  0,  'Red',
              IF({<Country, Part number>}(Sum(Sales) - Total_Orders)  <  Total_Stocks  OR  Sum(Sales)   <  Total_Stocks , 'Yellow',
                           'Green')), Country, Part number)

HQPGPXS_2-1690301058886.png

Now , the issue is when I filter by color "Yellow" or "Green" or "Red" only, I am still seeing the other colors in the columns.

HQPGPXS_3-1690301193133.png

Any suggestions will be much appreciated!  

 

Labels (2)
0 Replies