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
taylororiger
Helper II
Helper II

Measure not able to apply to conditional formatting

I am trying to apply conditional formatting through a measure I created (worked correctly with a different data set), however when I go to apply the conditional formatting, it does not allow me to click the measure, as shown below;

taylororiger_0-1649168176002.png

 

Any thoughts?

1 ACCEPTED SOLUTION

Hi, @taylororiger 

 

I checked your code and found that you are missing a symbol which is causing the result to be wrong.

You need to change  & to &&.  & is for concatenating strings.

vjaneygmsft_0-1649410874322.png

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

View solution in original post

6 REPLIES 6
taylororiger
Helper II
Helper II

Is there a way to change my measure data type to text?  Would this make it able to apply as a field value?  It is ont an option in the drop dow of data types.

Hi, @taylororiger 

 

I checked your code and found that you are missing a symbol which is causing the result to be wrong.

You need to change  & to &&.  & is for concatenating strings.

vjaneygmsft_0-1649410874322.png

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

negi007
Community Champion
Community Champion

@taylororiger select rules from the drop down instead of field value

 

negi007_0-1649168434042.png

 

links for help

Power BI Conditional Formatting (Step by Step Guide with Examples) (wallstreetmojo.com)

How to Do Conditional Formatting In Power BI with Rules - Font Color Scales (gigxp.com)




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



Proud to be a Super User!


Follow me on linkedin

I do not want to complete the rules field as I want it apply to my measure?

taylororiger_0-1649168913690.png

 

@taylororiger can you share what is the condtion you want to apply and what is the output of your measure. You can change the color according to the output of your measure in the conditional formatting tab.




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



Proud to be a Super User!


Follow me on linkedin

This si the measure I am trying to apply conditional formating to in my table

taylororiger_0-1649169464928.png

Can you visually show how to display this in the conditional formatting when selecting "Rules"?  I selected "Rules" and my table then could not be displayed.

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.