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! Learn more

Reply
engingee
Helper I
Helper I

colour rule not apply

Hi Everyone, I set up this colour rule, but could not apply it, why is that please??? Thanks!!!

 

engingee_1-1645873515683.png

 

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

Hi, @engingee ;

You could try two methods about conditional format.

1.create a measure.

Measure = IF(SELECTEDVALUE(financials[Year])>2013||SUM(financials[ Sales])>6000000,"red","white")

Then select field value ->measure.

vyalanwumsft_0-1646100076881.png

The final output is shown below:

vyalanwumsft_1-1646100110736.png

2.Or create a measure.

Measure 2 = IF(SELECTEDVALUE(financials[Year])>2013||SUM(financials[ Sales])>6000000,1)

then select rules ->measure 2

vyalanwumsft_2-1646100199825.png

The final output is shown below:

vyalanwumsft_3-1646100234220.png

 


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @engingee ;

You could try two methods about conditional format.

1.create a measure.

Measure = IF(SELECTEDVALUE(financials[Year])>2013||SUM(financials[ Sales])>6000000,"red","white")

Then select field value ->measure.

vyalanwumsft_0-1646100076881.png

The final output is shown below:

vyalanwumsft_1-1646100110736.png

2.Or create a measure.

Measure 2 = IF(SELECTEDVALUE(financials[Year])>2013||SUM(financials[ Sales])>6000000,1)

then select rules ->measure 2

vyalanwumsft_2-1646100199825.png

The final output is shown below:

vyalanwumsft_3-1646100234220.png

 


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I got it eventually, thanks very much for your help! @v-yalanwu-msft 

VijayP
Super User
Super User

@engingee 

This is formula issue 
IF (Selectedvalue()<4|| SelectedValue<50 || Selectedvalue() <2, you need to give color name not number without color name formula cannot understand which color to take!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


thanks @VijayP may I know what is the correct way to write please, if the colour I want is red please? Thanks!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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