Forum Discussion

bansikpopat's avatar
bansikpopat
Frequent Visitor
3 years ago

Conditional formatting 2 columns to return colour

I have few tables as my data source. I created a table to show various columns from different data sources using table visual. 

 

I want to compare two columns based on certain conditions and in return highlight the cells. 

Here is my sample data : 

 

Table 1 : 

MaterialMaterial NameSales Order
MA01Alpha5123
MA02Bravo5124
1245Charlie5125
MA03Delta5126

 

 

Table 2: 

MaterialStorage locationStock
MA01DE5
MA02DE10
MA03US6
1245NL12

 

 

Table 3 : 

MaterialDelivery quantity 
MA012
MA023
MA031
124510

 

 

Here is the visual I created based on above data : 

New_stock column is created on a column with rule to return values only if the storage location is - DE, NL otherwise return blank. 

 

MaterialNameSales orderNew_StockDelivery quantity 
MA01Alpha512352
MA02Bravo5124103
MA03Delta5126 1
1245Charlie51251210

 

 

I want to highlight the rows with below condtion 

 

If Delivery < 90% of stock return "Yellow" and if Delivery >= 90% of stock then no change in the colour. 

 

Could anyone please support and help? 

 

I have tried IFERROR and LOOKUPVALUE to get the columns in one specific table and then do the conditional colour formatting but does not seem to work. 

 

Any help would be appreciated. Thanks. 

2 Replies