Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Arul
Super User
Super User

Difference between Plan/Actual in matrix but values are from same column

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.

Arul_0-1688620839011.png

Arul_0-1688620925474.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

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.

Jihwan_Kim_0-1688622720760.png

 

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

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.

Jihwan_Kim_0-1688622720760.png

 

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thanks @Jihwan_Kim . It's working





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors