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
Anonymous
Not applicable

DAX - new column for a table that is simply an old column excluding certain values

I feel like this should be very easy but I can't get it to work. I have MYTABLE which has a column MYTABLE[active_ids] which has some values I need to exclude for a visualisation. I want to create a new column that is MYTABLE[active_ids] where the values are <= 100, introducing blanks for the values over 100. 

 

I've tried

column = MYTABLE[active_ids] <= 100

which naturally returns logical values. 

 

If I were to do this in SQL it would be:

CASE
 WHEN MYTABLE.active_ids > 100
 THEN NULL
 ELSE MYTABLE.active_ids
 END

 

Please help!

 Thanks.

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

See if this gives the result you want

column = if(Table1[Column] > 100,BLANK(),Table1[Column])

 

View solution in original post

1 REPLY 1
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

See if this gives the result you want

column = if(Table1[Column] > 100,BLANK(),Table1[Column])

 

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.