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
GeekAlfPro
Helper V
Helper V

How to convert query in a parameter

Hello,

 

i'd like to give users the choice of the folder and files in excel 

Then in the queries convert a cell in parameter.

i didn't find a way to do that.

in addition, the option "convert into parameter" is greyed out

GeekAlfPro_0-1690280116982.png

 

How can i do that ?

i mention that i will use the file as a template and from there create a function for the entire folder.

 

Thanks

2 REPLIES 2
GeekAlfPro
Helper V
Helper V

Merci Stéphane,

 

Je regarderai ça à mon retour de congés.

 

 

slorin
Super User
Super User

Bonjour

 

Par exemple, ce code permet de récupérer le contenu du dossier qui est référencé dans la cellule nommée "Dossier" du classeur Excel.

 

= Folder.Files(Excel.CurrentWorkbook(){[Name="Dossier"]}[Content]{0}[Column1])

il s'agit bien d'une seule cellule nommée, pas d'un tableau.

mais possible bien évidemment avec un tableau.

 

Stéphane 

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.

Top Solution Authors