Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I want to make the API call dynamic in import mode, to get the data in the power bi data model using a slicer. I tried to achieve that using the parameters, which i build them in power query, but cant relate parameters to slicers, till desktop version parameters are easy to use, I can click on transform data from there edit parameters and change the values accordingly, but how can I do that after publishing the report to workspace where parmeters do not work, so slicers would be good to have in report to change the data dynamically.
Please help me in resolving the issue.
Solved! Go to Solution.
Hi @HFT ,
As far as I know this is not possible, the processing and cleaning of the data is done in PowerQuery. You need to import all the tables first and then create a Field parameter in the Desktop to dynamically switch the data source of the visual display.
Here is my test and attached pbix file for your refernce.
When I selected Date column of Table1, the visual showed data of Table1.
When I selected Test1 column of Table2, the visual showed data of Table2.
Best regards,
Mengmeng Li
Hi @HFT ,
As far as I know this is not possible, the processing and cleaning of the data is done in PowerQuery. You need to import all the tables first and then create a Field parameter in the Desktop to dynamically switch the data source of the visual display.
Here is my test and attached pbix file for your refernce.
When I selected Date column of Table1, the visual showed data of Table1.
When I selected Test1 column of Table2, the visual showed data of Table2.
Best regards,
Mengmeng Li
Is there any workaround to make a dynamic API call based on slicer? I know we can make a parameter in Power Query and then bind a field to that parameter and link that field to a slicer. However, this is only supported in Direct Query mode and, from my understanding, APIs do not support Direct Query in Power BI. Is there any alternative solution to this such as using Power Automate/Flow or any other Microsoft/third-party services?
Hi, could you provide some more concrete detail? The slicer acts on data in the model, and wouldn't determine what API to import. You can import all different APIs and potentially add a field from which API the data is coming, which is then used in the slicers. The import operation happens when the dataset is refreshed, not at slicer change time.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 23 |