Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Conditional formatting for an average of % in the matrix visual is not working... 0-4% should be green 5-10% in yellow and 11% above in red. You can review the screenshot below
Abandon % is calculated column - 
Solved! Go to Solution.
Never Mind I was able to fix it, I changed the value a decimal number and found that in the rules i should use 0.04 and further so once it was fixed I changed it back % and it is working fine. Thank you for all your help
try this
CF = SWITCH( TRUE(),
    [Abandon %] <= 0.04,"#008000",
    [Abandon %]<= 0.1 ,"#FFFF00",
    "#FF0000"
      )you need to crate measure
CF = SWITCH( TRUE(),
    [Abandon %] <= 0.04,"#008000",
    [Abandon %]<= 0.1 ,"#FFFF00",
    "#FF0000"
      )
and then follow the pictures
I tried this and followed the screenshot given by you
значение матрице как вы посчитали?
вот так AVERAGE(support__cw_ops_manage_case_merge_temp[Abandon %])
why do you use conditional
AVERAGE(support__cw_ops_manage_case_merge_temp[Abandon %])
------------------
this is incorrect, needs to this
CF = SWITCH(TRUE(),
[Abandon %] <= 0.04,"#008000",
[Abandon %]<= 0.1 ,"#FFFF00",
"#FF0000"
)
Because this column - support__cw_ops_manage_case_merge_temp[Abandon %] is not showing when only using switch. Also, I am trying to share the file as I have lower the file size as drive and other uploading sites are blocked and I have to email the file to myself and then upload and share
try this
CF = SWITCH( TRUE(),
    MAX(support__cw_ops_manage_case_merge_temp[Abandon %]) <= 0.04,"#008000",
    MAX(support__cw_ops_manage_case_merge_temp[Abandon %])<= 0.1 ,"#FFFF00",
    "#FF0000"
      )
I tried this
CF = SWITCH( TRUE(), MAX(support__cw_ops_manage_case_merge_temp[Abandon %]) <= 0.04,"#008000", MAX(support__cw_ops_manage_case_merge_temp[Abandon %])<= 0.1 ,"#FFFF00", "#FF0000" )
it turned everything in red
the other 
CF = VAR _Abandon = IF(support__cw_ops_manage_case_merge_temp[ABANDONED_CHAT_FLAG] = 0, 0, support__cw_ops_manage_case_merge_temp[Total_Chat_Count] / support__cw_ops_manage_case_merge_temp[ABANDONED_CHAT_FLAG]) RETURN SWITCH(TRUE(), _Abandon <= 0.04,"#008000", _Abandon <= 0.1 ,"#FFFF00", "#FF0000")
It is not able to find the  support__cw_ops_manage_case_merge_temp[Total_Chat_Count] / support__cw_ops_manage_case_merge_temp[ABANDONED_CHAT_FLAG]) columns weird 
pls share the file
or this
ColorCategory =
VAR AbandonPercentage = AVERAGE(support__cw_ops_manage_case_merge_temp[Abandon %])
RETURN
    SWITCH(
        TRUE(),
        AbandonPercentage >= 0 && AbandonPercentage <= 0.4, "Green",
        AbandonPercentage > 0.4 && AbandonPercentage <= 0.1, "Yellow",
        AbandonPercentage > 0.1, "Red",
        BLANK()  
    )pls try this
CF = SWITCH( TRUE(),
    [Abandon %] <= 0.04,"#008000",
    [Abandon %]<= 0.1 ,"#FFFF00",
    "#FF0000"
      )Unfortunately, the Abandon % is not reflecting in the measure you suggested
I tried both but everything is going green
this does not show the calculated column so not working
CF = SWITCH( TRUE(),
    [Abandon %] <= 0.04,"#008000",
    [Abandon %]<= 0.1 ,"#FFFF00",
    "#FF0000"
      )
This is turning everything in green
ColorCategory =
VAR AbandonPercentage = AVERAGE(support__cw_ops_manage_case_merge_temp[Abandon %])
RETURN
    SWITCH(
        TRUE(),
        AbandonPercentage >= 0 && AbandonPercentage <= 0.4, "Green",
        AbandonPercentage > 0.4 && AbandonPercentage <= 0.1, "Yellow",
        AbandonPercentage > 0.1, "Red",
        BLANK()  
    )
pls try this
CF =
VAR _Abandon = 
IF(support__cw_ops_manage_case_merge_temp[ABANDONED_CHAT_FLAG] = 0, 0, support__cw_ops_manage_case_merge_temp[Total_Chat_Count] / support__cw_ops_manage_case_merge_temp[ABANDONED_CHAT_FLAG])
RETURN
SWITCH(TRUE(),
_Abandon <= 0.04,"#008000",
_Abandon <= 0.1 ,"#FFFF00",
"#FF0000")you are doing something wrong, please share the file
This is the Google Drive link, I have copied the table on Excel and shared the Excel file - Please put the request for access -
I need a pbix file
Never Mind I was able to fix it, I changed the value a decimal number and found that in the rules i should use 0.04 and further so once it was fixed I changed it back % and it is working fine. Thank you for all your help
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |