Forum Discussion
saud968
2 years agoMemorable Member
Conditional Formatting in matrix visual
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 %...
- 2 years ago
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
Ahmedx
2 years agoSuper User
you need to crate measure
CF = SWITCH( TRUE(),
[Abandon %] <= 0.04,"#008000",
[Abandon %]<= 0.1 ,"#FFFF00",
"#FF0000"
)
and then follow the pictures
saud968
2 years agoMemorable Member
I tried this and followed the screenshot given by you
ColorCategory =
VAR AbandonPercentage = AVERAGE(support__cw_ops_manage_case_merge_temp[Abandon %])
RETURN
SWITCH(
TRUE(),
AbandonPercentage >= 0 && AbandonPercentage <= 4, "Green",
AbandonPercentage > 4 && AbandonPercentage <= 10, "Yellow",
AbandonPercentage > 10, "Red",
BLANK()
)
but I am getting the below
but I am getting the below
- Ahmedx2 years agoSuper User
pls try this
CF = SWITCH( TRUE(), [Abandon %] <= 0.04,"#008000", [Abandon %]<= 0.1 ,"#FFFF00", "#FF0000" ) - Ahmedx2 years agoSuper User
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() ) - Ahmedx2 years agoSuper User
значение матрице как вы посчитали?
вот так AVERAGE(support__cw_ops_manage_case_merge_temp[Abandon %])- saud9682 years agoMemorable MemberAbandon % = 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])
i used this measure- Ahmedx2 years agoSuper User
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"
)