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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
h4_dkj
Helper I
Helper I

Conditional formatting on another column

Hi

 

I am trying to conditional format my finance result each month compared to the budget

The table 
ComapanyFinance mont 1budget mont 1Finance month 2budget month 2Finance month3budget month 3
1- 5-4,5-4.14,5-6-5,2

 

I have created a KPI Color DAX:

KPI_1_1_Color = IF(SUM('BUDGET_COMMITMENTS (2)'[KPI_1_1_Virkelig]) > SUM('BUDGET_COMMITMENTS (2)'[KPI_1_1_Budsjett]), "#69b00b"
,"#f44242"
)
 
I then use this on my visual and choose conditional formatting. Setting background color to my measure.
Then apply it.
 
The table should look like this
ComapanyFinance mont 1budget mont 1Finance month 2budget month 2Finance month3budget month 3
1- 5-4,5-4.14,5-6-5,2
 
How ever the finance month 2 get the color green as wel. It should be red.
 
Any ideas on what I am doing wrong?
1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @h4_dkj ,

 

DAX measure is based on the current row context, it is recommended that you check that your model meets the requirements for using this measure. 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors