How to Parametize to a Data Model-to-Excel sheet query?

cr731

Well-known Member
Joined
Sep 17, 2010
Messages
611
I have a table in my data model which I have a linked table back into Excel (via Data > Existing Connections > Tables > myTable). However, I only want rows of my table where a certain column equals a specific value (saving me from bringing back about 75% of the table that I don't need).

I see that if I right-click the query table there is an Edit DAX option, which I'm wondering if I can use to apply a filter.

How would I write that DAX statement or is there any other easier way? I want the data returned as a table, not as a PivotTable.

Thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
The better solution is to use Get & Transform Data (a.k.a. Power Query).
Watch this video for a small demo, in which some filtering is applied to an Excel table and results loaded nack to a new table.
 
Upvote 0
The better solution is to use Get & Transform Data (a.k.a. Power Query).
Watch this video for a small demo, in which some filtering is applied to an Excel table and results loaded nack to a new table.

I'm connecting to a SSAS cube and for some reason, when I use Power Query, it takes an extremely long time to refresh (sometimes I leave it running 2+ hours and still doesn't finish), but if I create the same query in PowerPivot, it refreshes in about 15-20 minutes. So, that's why I'm getting the data into PowerPivot, and then I'd like to return it to an Excel table. As far as I know, PQ can't retrieve data from the data model?

Thanks
 
Upvote 0
In that case my solution doesn't make any sense. Apologies for that.
Unfortunately I won't be able to help you with DAX.
I'll try and involve Matt Allington to come to the rescue...
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top