Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
VijayAntonyM
Helper I
Helper I

How to pass the visual selected values to report query dynamically

Hi Team,

Good day.

 

Kindly help,

How to pass the selected values dynamically from visuals(tables, charts) as a parameters to data source queries,

 

Level 1: User needs to click on the Total Shipments column count below,

VijayAntonyM_0-1733576076676.png

Level 2: Display the clicked Total Shipments count-2069 detail records into next page,

 

Kindly note, need to pass the some column values as parameters - Month-Year, Enterprise Account Number, Payer Account Number, Product using Manage Parameters option in power query editor

 

Kindly help

 

regards

M. Vijay Antony

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @VijayAntonyM 

 

That is not possible. The query editor affthe semantic model, but changes in the semantic model do not influence the query editor. To achieve dynamic filtering based on slicer selections, load the entire dataset into the data model and apply filtering logic using DAX measures. If you're using DirectQuery, slicer selections can dynamically adjust the queries sent to the underlying database. However, this occurs within the reporting layer and does not affect transformations in Power Query.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @VijayAntonyM ,

 

Selecting values in a report is an interaction and filtering of the data that has been loaded into the report. This filtering typically only affects the report or visualization you're currently viewing, and doesn't change the underlying data. Power Query is used to transform, clean, and prepare data before it is loaded into a report. Their query for the data is two different layers, so it's not possible to pass the selected values in the report into Power Query.

 

The workaround is load all the data into the report beforehand and then filtering it based on the selected values. This can cause your report to be too large, and you can purchase some Premium capacity.

 

Purchase the right Premium capacity based on your reports. 

How to configure workloads in Power BI Premium - Power BI | Microsoft Learn

 

 

Best regards,

Mengmeng Li

danextian
Super User
Super User

Hi @VijayAntonyM 

 

That is not possible. The query editor affthe semantic model, but changes in the semantic model do not influence the query editor. To achieve dynamic filtering based on slicer selections, load the entire dataset into the data model and apply filtering logic using DAX measures. If you're using DirectQuery, slicer selections can dynamically adjust the queries sent to the underlying database. However, this occurs within the reporting layer and does not affect transformations in Power Query.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.