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
thiagozaiden
Employee
Employee

Filter Analysis Services before Importing Data

Hello guys,

 

I have a very big cube that has data from all over the world, but I only need one specific country.

I could import everything and then filter it, but since its too big, I keep getting and error message whenever it passes 10 million rows loaded, saying it ran out of query time.

Is there a way to filter before importing?

What is the cause of this error? Memory? Network? Capacity?

 

Ps.: I can't use live data because I already have other sources in this Power BI file, so only Import option is enabled.

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Use "Advanced options" when creating your query and paste in your MDX to filter the data at the time of query.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

Use "Advanced options" when creating your query and paste in your MDX to filter the data at the time of query.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

It worked! Thanks

Anonymous
Not applicable

What's the MDX code to filter it?

You need to research mdx based in your use case and requirements. No one here is a mind reader

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.