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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ThomasWeppler
Continued Contributor
Continued Contributor

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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