Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I have a use case where we need to bring data from a PowerBI semantic model into Excel, but would like to only return a subset of data to Excel based on input parameters in Excel that are selected by the user. Is this possible? I have not been able to figure out how to dynamically limit the data that is returned. (I know that I bring all of the data back and then filter, but do not want all data returned)
Any help is appreciated. Thanks.
Hi @jmoedata,
Thank you for reaching out to the Microsoft Fabric Forum Community.
And also, Thanks to @lbendlin for prompt and helpful solution
Excel’s live connection to a Power BI semantic model (via PivotTable > From Power BI) creates a thin client connection that allows slicing and filtering after the data is loaded, but it doesn’t support parameter-driven filtering before retrieval. Power BI Service parameters are only used during dataset refresh and have no effect on what Excel pulls in. To limit data at query time, the best workaround is using DAX Studio or Power Query with the XMLA endpoint, where you can write custom DAX queries and even pass Excel cell values as parameters to filter data before it loads into Excel.
If you find this response helpful, please consider marking it as the accepted solution and giving it a thumbs-up to support others in the community.
Thank you & Regards,
Prasanna Kumar
Thank you for the responses. Do you have any examples or tutorials that exist where Power Query with XMLA endpoints exist? Ideally, we want the users to enter data (or select it from a list) in Excel and pass those parameters to the semantic model. Thanks.
You can do that in a roundabout way - In Power Query you connect to the semantic model via the Analysis Services connector, select Import mode, and specify the DAX query.
But why? Why not directly run the DAX queries into an Excel table?
You cannot pass parameters from Excel to queries. This needs to be done by the user manually.
Connnect your Excel file via the "live connection (500000 rows)" (by the way, two lies for the price of one!) and teach your users how to modify the table query DAX. Introduce them to DAX Studio Query Editor while you are at it.