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

SSAS query filter

Dear all, 

 

I am facing very long data loading time when trying to connect to SSAS leading to server timeout error. 

I want to filter the date in the query. This will avoid to load my whole data (which is not possible anyway) to my local computer memory.  I tried to use the parameters but did not succeed also try @danielhjorvar advice in this post https://community.powerbi.com/t5/Desktop/filter-on-import-data-from-ssas/td-p/28784

but it does not look to work for me. As I need to create additional measures for my data live connection is not an option for now (unless Microsoft release that function for us...) 

 

I will appreciate your help

 

 

 

 

1 ACCEPTED SOLUTION

When using member-filters, you have to select the full string of the element. So it's fast, but not flexible.

For searches like "Starts with..." you have to use Text filters, but then you pay the performance penalty. So try to reduce the imported data by using member filters first and continue with text filters (who will often not fold back).

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

6 REPLIES 6
ImkeF
Super User
Super User

This sounds as if your filters don't fold back to the server, so instead of filtering the data there and just pulling what's needed, load everything to PowerBI and filter there. SSAS-filters a bit sensitive, make sure you use Member-filters instead of Text-filters:

https://social.technet.microsoft.com/Forums/en-US/607ca332-ed70-4556-b6bc-89aab546a430/pulling-data-...

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

Thank you very much. It is working now. I did not know this trick before. 

Do you know when we should use one or the other?

 

When using member-filters, you have to select the full string of the element. So it's fast, but not flexible.

For searches like "Starts with..." you have to use Text filters, but then you pay the performance penalty. So try to reduce the imported data by using member filters first and continue with text filters (who will often not fold back).

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Is it possible to to use a member filter for a list of values located on a worksheet? I found the proper coding when referring to a specific cell, but am having difficulty for a list of values. The list is variable, meaning it could range from 1-20 items. The list is housed in a table.

Hi,

I'm trying to apply the logic above when querying an SSAS cube using PowerQuery.  However the date dimension includes several years and the member filter only comes back with a single value (2000) instead of all the available years - how can I expand the query to include multiple values?  (There are no other filters applied in the powerquery, it is just using the date dimension as well)

 

Thanks

Dan

I don't understand what you mean with "the member filter comes back with a single value". Do you mean in the preview in the query-editor? Thats normal. There should be a field down right somewhere indicating that you can load more data.

 

If that's not the problem, please try to be more specific or send screenshot. Thx.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.