Forum Discussion
Conditional Formatting Help
hasharma19 what are measures and what are the columns? It is hard to understand your post. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- hasharma192 years agoHelper II
parry2k Apologies for the same.
There are multiple measures i have used and there are too many columns, hence i have avoided to inculde.To get the % of score i have used below measure
To get the Level1 & Level2, i have used below measure(Last characters is of first column of table"Severity"), as was not table to extract the text value.
below is the logical measure i am trying to use to get the conditional formatting value
TableName:-DG Audit Reports
Severity Compliance(Y, N, N/A) Compliant Level 1 =6Level 2 = 2 Non-Compliant Level 1 = -12Level 2 = -2 N/ALevel 1 = -6Level 2 = -2 Site Reviewed Review Date CalRef Non_C_Ref N N/A Year Month Last Characters FileName H1_H2 Level 2 Y 2 AMD VJR 08-Jul-23 2 2023 7 2 AMDVJR_H2_2023.xlsm H2 Level 2 Y 2 AMD VJR 08-Jul-23 2 2023 7 2 AMDVJR_H2_2023.xlsm H2 Level 2 Y 2 AMD VJR 08-Jul-23 2 2023 7 2 AMDVJR_H2_2023.xlsm H2 Level 2 Y 2 AMD VJR 08-Jul-23 2 2023 7 2 AMDVJR_H2_2023.xlsm H2 Level 2 Y 2 BLR HSR 11-Jul-23 2 2023 7 2 BLRHSR_H2_2023.xlsm H2 Level 2 Y 2 BLR HSR 11-Jul-23 2 2023 7 2 BLRHSR_H2_2023.xlsm H2 Level 2 Y 2 BLR HSR 11-Jul-23 2 2023 7 2 BLRHSR_H2_2023.xlsm H2 Level 2 Y 2 BLR HSR 11-Jul-23 2 2023 7 2 BLRHSR_H2_2023.xlsm H2 Level 2 Y 2 BLR MDY 25-Jul-23 2 2023 7 2 BLRMDY_H2_2023.xlsm H2 Level 2 Y 2 BLR MDY 25-Jul-23 2 2023 7 2 BLRMDY_H2_2023.xlsm H2 Level 2 Y 2 BLR MDY 25-Jul-23 2 2023 7 2 BLRMDY_H2_2023.xlsm H2 Level 2 Y 2 BLR MDY 25-Jul-23 2 2023 7 2 BLRMDY_H2_2023.xlsm H2 Level 2 Y 2 BLR MYQ 15-Jul-23 2 2023 7 2 BLRMYQ_H2_2023.xlsm H2 Level 2 Y 2 BLR MYQ 15-Jul-23 2 2023 7 2 BLRMYQ_H2_2023.xlsm H2 Level 2 Y 2 BLR MYQ 15-Jul-23 2 2023 7 2 BLRMYQ_H2_2023.xlsm H2 Level 2 Y 2 BLR MYQ 15-Jul-23 2 2023 7 2 BLRMYQ_H2_2023.xlsm H2 Level 2 Y 2 BLR YPU 08-Jul-23 2 2023 7 2 BLRYPU_H2_2023.xlsm H2 Level 2 Y 2 BLR YPU 08-Jul-23 2 2023 7 2 BLRYPU_H2_2023.xlsm H2 Level 2 Y 2 BLR YPU 08-Jul-23 2 2023 7 2 BLRYPU_H2_2023.xlsm H2 Level 2 Y 2 BLR YPU 08-Jul-23 2 2023 7 2 BLRYPU_H2_2023.xlsm H2 Level 2 Y 2 BOM BYO 07-Jul-23 2 2023 7 2 BOMBYO_H2_2023.xlsm H2 Level 2 Y 2 BOM BYO 07-Jul-23 2 2023 7 2 BOMBYO_H2_2023.xlsm H2 Level 2 Y 2 BOM BYO 07-Jul-23 2 2023 7 2 BOMBYO_H2_2023.xlsm H2 Level 2 Y 2 BOM BYO 07-Jul-23 2 2023 7 2 BOMBYO_H2_2023.xlsm H2 Level 2 Y 2 BOM GG1 08-Jul-23 2 2023 7 2 BOMGG1_H2_2023.xlsm H2 Level 2 Y 2 BOM GG1 08-Jul-23 2 2023 7 2 BOMGG1_H2_2023.xlsm H2 Level 2 Y 2 BOM GG1 08-Jul-23 2 2023 7 2 BOMGG1_H2_2023.xlsm H2 If post allows me to attached file, then i would have did that.
Thanks - hasharma192 years agoHelper II
parry2k _Thanks for the guidece and apologies for the same.
Below is the table i am using(table nale:-DG Audit Report)
Val measure is used to extract the Level1 & Level2 type from last character(which is from first column last digit of table). I was not able to value from Severity Column itself which i can use in directly hence this measure i have applied.)
To get the score have used below measure
Trying to apply Conditional formatting based on avobe measure but not able to get the desire result.
Required result is
If rating >0.95% and Non-comp count=0 then "Complaint"
if rating >0.95% and Val=Level1(which actually is Severity level available in first column of table) and Non Comp Count =>1 then "Non-Complaint"
if rating >0.95% and Val=Level2 and Non Comp Count =>12 then "Partial-Complaint"
if rating <0.90% Non-Complaint"