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! Request now

Reply
Anonymous
Not applicable

Colour formatting on Measure

Heya everyone!

 

Ive got another query, in my report I have a measure which states that if a text contains "true" it will display active and if its false it will display "closed".

 

Status = IF(MAX('table'[column]) = "True","Closed","Active")

I also wanted to add colour formatting to this in my quick measure. After some research I heard that colour formatting is not a option within DAX but I wanted to confirm

 

IF its not possible, Could I possible make a measure to display a green "active" if true else display a "red" closed by using two different text boxes?

 

Any help is appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous Please create a measure for color formatting

Color = IF(MAX('Table'[Status])="Closed","#ff0000","#66ff33")

Right click on status measure

Select conditional formatting >> Background color

Select format by field value

In based on field select Color measure created above

click oKcolorformatting.png 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@Anonymous Please create a measure for color formatting

Color = IF(MAX('Table'[Status])="Closed","#ff0000","#66ff33")

Right click on status measure

Select conditional formatting >> Background color

Select format by field value

In based on field select Color measure created above

click oKcolorformatting.png 

Anonymous
Not applicable

Hey Vimal,

 

I cannot seem to find the conditional formatting option when I right click on status measure:

 

 

status measure.PNG

 

Kind regards,

Ali

Anonymous
Not applicable

Add that measure in to a table visual and right click on the measure name under visualizations. Please refer the scrrenshot for the same.

 

Untitled.png

Anonymous
Not applicable

Hello @Anonymous 

I have it already on my vizualisation and added the field but i still do not get the colour formatting option.

 

Kind regards,

Ali

Anonymous
Not applicable

Right click on the measure name under fileds or you can find the option under format, next to fileld tab.

Tahreem24
Super User
Super User

Hi @Anonymous ,

 

You can create a masure like below with up and down arrow to show you status:

 

Icon = SWITCH([Status],"Closed",UNICHAR(129095),"Active",UNICHAR(129093))
 
Please give THUMBS UP for support and mark it as a solution if it helps you! 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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