Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello All,
I have a below requirement where I need to conditionally format the cells of actual values in matrix visual while comparing with plan values. Since the plan/actual values are populating from same column I could not find the difference and add the conditinal formatting in matrix. Please refer the image attached of expected and the data structure.
Thanks,
Arul
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
One of ways to create a solution is to create a measure for conditionally assign the color like below.
Sum measure: =
SUM(Data[Value])
Conditional format background measure: =
VAR _actual = [Sum measure:]
RETURN
IF (
SELECTEDVALUE ( Data[Plan/Actual] ) = "Actual",
IF (
_actual
> CALCULATE ( [Sum measure:], Data[Plan/Actual] = "Plan" ),
"Light Green",
"Red"
)
)
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
One of ways to create a solution is to create a measure for conditionally assign the color like below.
Sum measure: =
SUM(Data[Value])
Conditional format background measure: =
VAR _actual = [Sum measure:]
RETURN
IF (
SELECTEDVALUE ( Data[Plan/Actual] ) = "Actual",
IF (
_actual
> CALCULATE ( [Sum measure:], Data[Plan/Actual] = "Plan" ),
"Light Green",
"Red"
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!