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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.