The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have Data Source: https://example.com/v1/{city}/api=1.0 .
I created parameter (list_param) "List of Value" with City names.
I changed the source : Source = Json.Document(Web.Contents(Text.Combine({"http://example.com/v1/",list_param,"/api=1.0"}))),
The data is generated based on the parameter value, works good.
But I want to use Slicer with values of parameter to select City name on the table. How to achive it ?
Thanks
To achieve this, you can create a slicer with the values from the "list_param" parameter. Follow these steps:
This way, you can use the slicer to dynamically filter the data based on the selected city name.
Hi @zurab4000
It is possible to define a paramateric SQL query which can be updated in real-time based on the selected value in a slicer. But it seems that it is limited to the data sources that supports DirectQuery. In this ragard, these two links should be useful:
However, I am still looking for a way to apply the same scenarion on the WEB (RestAPI) data source. Please let me know if you find any solution.
Best regards, Hossein.
HI @zurab4000,
Query parameter is possible to achieve dynamic change the data source. You only need to parameterize the connection string with query parameters.
Current the slicer and filter not able to directly interact with the backend query tables connection string. I'd like to suggest you submit an idea for these requirements.
Microsoft Power BI ideas
Regards,
Xiaoxin Sheng
Hi @zurab4000,
AFAIK, slicer and query parameter are work on different level, you can’t use the front side slicer to affect the background query parameters.
Notice: the data level of power bi(from parent to child level)
Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)
Regards,
Xiaoxin Sheng
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
90 | |
83 | |
64 | |
58 |
User | Count |
---|---|
244 | |
128 | |
118 | |
79 | |
78 |