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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Sort a TEXT field

Hi ,

 

Hi,

 

I have a DAX as below where if the field is "Red OR Amber" then I show the value else its blank.

Column = IF(Table1[Health] IN {"Red","Amber"} ,Table1[Values],"")
 
The challenge is that if I use this - I cannot sort as the column has to be modeled as Text.
Sorting by Table1[Values] is showing error.
How can I fix this?
 
Need Help!
Thanks
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous 

Use blank()

Column = IF(Table1[Health] IN {"Red","Amber"} ,Table1[Values],blank())

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous 

Use blank()

Column = IF(Table1[Health] IN {"Red","Amber"} ,Table1[Values],blank())

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.