Forum Discussion
Conditionnal formating with 2 Calculation group
Hi claxxx ,
If I understand correctly, the issue is that you want to apply a conditional formatting to make the positive is red and the negative is green. Please try the following methods and check if they can solve your problem:
1.Create a measure. Enter the following DAX formula.
Measure =
var _persales = SELECTEDVALUE('MESURE GROUP'[Mesure])
var _salesvar = SELECTEDVALUE('TIME VAR'[Variation])
RETURN
IF (
_salesvar IN {"ACTUAL", "P-1"},
BLANK(),
IF (
_persales = "Cost per Sales" && _salesvar = "VAR",
BLANK(),
1
)
)
2.Select the INIT KPI values and choose the conditional formatting.
3.Select the measure and set the Rules.
4.The result is shown below.
Best Regards,
Wisdom Wu
- claxxx2 years agoFrequent Visitor
Thank you for your answer.
My point was principally to apply a conditionnal formating only to the "VAR %" column.
So for all measures the column "Actual" and "P-1" should maintain without any color, and VAR % have to be the only column with a conditionnal color.
In your result I see that the 3 column "Actual", "P-1", and "VAR %" have the conditional format but I just want VAR % to have it. Do you have a solution to do that?