Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I need to create a line graph using a dynamic query that will receive as a parameter the value selected from a column of a table.
My data looks like this :
| ID | Name |
| 1 | New york |
| 2 | Boston |
| 3 | Chicago |
| 4 | Miami |
| 5 | Seatle |
then when selecting a city from the table I can bring the values that I need in the graph.
Note: the graph query is dynamic and receives as parameter the name of the city.
HI @Vilori1200 ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.
Best Regards
Lucien
I have finally created a measure and with this I was able to solve, grateful!
@ , if the table and line visual are interacting you can create visual like that
You can create a measure like one below and use in title to display city name
selectedvalue(Table[City])
https://docs.microsoft.com/en-us/power-bi/service-reports-visual-interactions
@amitchandak the table and line visual are not interacting. Are independent data sources.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 40 | |
| 29 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 129 | |
| 103 | |
| 72 | |
| 56 |