Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
My data model is based on an API connection. After creating the API in Power M and applying it, I created the necessary visuals, however, I have a need:
Is there any way for the user using the panel to be able to pass the page parameter through a slicer filter to the API?
Hi, @yforti
Power BI doesn't natively directly support dynamically passing slicer values back to the API endpoint, but you can achieve a similar effect by using Power BI's dynamic M-parameter feature and combining it with a service that supports dynamic queries, such as Azure Functions or a web service that you control. Set dynamic M-parameters in a Power BI report. These parameters can be bound to a slicer, allowing the user to control their values interactively. For dynamic M-parameters, you can check out the following documentation:
Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn
Connect Power BI to a web service or Azure Function and pass dynamic M-parameters in the request instead of connecting Power BI directly to the original API.
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That is not really possible. Please refer to this thread for further information.
Passing slicer selection to REST API call
Proud to be a Super User! | |
User | Count |
---|---|
73 | |
70 | |
38 | |
23 | |
23 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |