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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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