Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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"
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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"
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
90 | |
81 | |
65 | |
65 | |
60 |
User | Count |
---|---|
170 | |
114 | |
102 | |
73 | |
69 |