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
ThomasWeppler
Skilled Sharer
Skilled Sharer

Optiminizing filters in DAX

Hi power BI comunity

I want to optimize the filters in my Power BI report to make it fast to code in and make it all run faster for the end user.


Now I can write a filter in DAX like this

Registrationen[internalid] <> 3,
Registrationen[internalid] <> 5,
Registrationen[internalid] <> 13,
and it works fine.

But I think the preformance could be better if I just read throught the date once so I would like to write something like this.
Registrationen[internalid] <> {3,5,13}
But when I write this line of code it doesn't work.

Am I right to think that such a line would be faster?
Is there another way to write it that works in DAX?
1 ACCEPTED SOLUTION
NickolajJessen
Solution Sage
Solution Sage

here's a link to using NOT IN in Power BI Dax.
https://community.powerbi.com/t5/Desktop/DAX-equivalent-of-SQL-s-NOT-IN/m-p/586192#M277794

You can use Power Bi's built in Performance Analyzer to test various measure speed.

Does this solve your problem?

View solution in original post

1 REPLY 1
NickolajJessen
Solution Sage
Solution Sage

here's a link to using NOT IN in Power BI Dax.
https://community.powerbi.com/t5/Desktop/DAX-equivalent-of-SQL-s-NOT-IN/m-p/586192#M277794

You can use Power Bi's built in Performance Analyzer to test various measure speed.

Does this solve your problem?

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.