Forum Discussion
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
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).
6 Replies
- ImkeFCommunity 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:
- AnonymousNot 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?
- ImkeFCommunity 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).