Forum Discussion
Use Excel to get data from semantic model using parameters
- Anonymous1 year ago
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.