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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
ImkeF
Community Champion
Community Champion

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
Community Champion
Community Champion

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?

 

ImkeF
Community Champion
Community Champion

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.

Anonymous
Not applicable

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

ImkeF
Community Champion
Community Champion

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.