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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Rob_PowerBi
Frequent Visitor

Use a filter (/SelectedValue) as paramater input

Hi Guys,


I'm struggling with the following situation. 

  • I have an input folder, that contains thousends of excel files (all in the same format).
  • I want my power BI file to load only the file that is selected by an user that uses Power BI service (not desktop).
  • I can create a filter with all the file names (by connecting to the folder and show the distinct file names, and than i want to use that value (=SELECTEDVALUE) in an other M-Query to open the desired file and use that in visualisations and calculations.

Is there any way to make this happen? Basically I want user input (slicer/filter) to change the paramaters. 😁


Thanks in advance!


Rob

1 REPLY 1
lbendlin
Super User
Super User

I want my power BI file to load only the file that is selected by an user that uses Power BI service (not desktop).

No can do. Dynamic M Query parameters only work for Direct Query connections which yours isn't..

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.