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
sbm_tekade
Frequent Visitor

Wanted to use calculated column in measure

Hi Everyone,

I have one set of data where I calculated columns on certain conditions to apply conditional formatting on a visual-like matrix.

the conditional column having only two records in it i.e. TRUE and FALSE.

I wanted to use that column to apply conditional formatting on top of the visual using this column context by using measure StatusColor = SWITCH('Table'[Status], "TRUE", "blue", "FALSE", "red")

But the issue I was facing we are not allowed to use the calculated column in the above context to create new measures.

 

Can anyone suggest me different scenario or way to overcome this type of issue?

@Daryl-Lynch-Bzy

1 ACCEPTED SOLUTION
LQuedas
Resolver II
Resolver II

ey @sbm_tekade ,

 

instead you create the new conditional column with TRUE and FALSE, why don't you use the name of the color and then use the option "Format Style" equal to "Field Value", e.g.

LQuedas_0-1674822270520.png

let me know if this help you...

 

Cheers, LQ

View solution in original post

1 REPLY 1
LQuedas
Resolver II
Resolver II

ey @sbm_tekade ,

 

instead you create the new conditional column with TRUE and FALSE, why don't you use the name of the color and then use the option "Format Style" equal to "Field Value", e.g.

LQuedas_0-1674822270520.png

let me know if this help you...

 

Cheers, LQ

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.