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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Cornwalls
Helper I
Helper I

Urgent - Dax - Return a switch value if cell 1 is greater than a percentage of cell 2

Need to finish this report off asap and hoping it is really simple for someone to explain to me.

 

Can someone help walk me through ensuring the Current Cell is formatted red if it equals greater than 80% of the number in the Limit cell. 

 

Kind of like if [Current] = >*.8 of [Limit] than colour the cell Red

 

CurrentLimit
103761.01171818.18

 

I dont know if its possible and just thinking out loud, but am i supposed to create a new measure variable switch so if Current is greater then 80% of Limit then return a number 1. Then i can create a conditional formatting rule on the Current Column for any cell in this new measure is 1 then it will colour it red.  

 

Many thanks for any responses.

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Cornwalls ,

 

Sorry for the delay.

Yes, your logic is correct.

Try following the steps.

1# Create a measure like:

Measure = IF(SELECTEDVALUE('Table'[Current])>=0.8*SELECTEDVALUE('Table'[Limit]),1,0)

2# Create conditional formatting on Current column.

5.PNG

The result should be as below.

6.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Cornwalls ,

 

Sorry for the delay.

Yes, your logic is correct.

Try following the steps.

1# Create a measure like:

Measure = IF(SELECTEDVALUE('Table'[Current])>=0.8*SELECTEDVALUE('Table'[Limit]),1,0)

2# Create conditional formatting on Current column.

5.PNG

The result should be as below.

6.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thanks Mate, this worked perfectly. 👍

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.