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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors