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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Tom83
New Member

Excel cell as input for parameter

Hi guys,

I'm trying to set up a parameter in Power Query based on an Excel named cell called YTD_date. The reason I'm using a parameter is because this one can be used to add a conditional column to my dataset. This is what I've done up so far:

Added the cell to PowerQuery:

let
Source = Excel.CurrentWorkbook(){[Name="YTD_date"]}[Content],
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"31-12-2021", type date}})
in
#"Changed Type"


Now I want to setup the Parameter but it doens't allow me to select the query, any idea why? When creating a new query it's shown but not giving the excel balue. Is this the right way or would there be an easier solution to fix this? I just want to use an input cell to use in a conditional column to calculate the amounts YTD on record level, I don't want to filter rows based on this cell-value because I need the other rows as well.

1 ACCEPTED SOLUTION
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

hey, 

you need to convert the query column with the wanted parameter to list, go to tranform tab and select the wanted column as parameter and convert to list. 

StefanoGrimaldi_1-1619367516285.png

 

if this helped please give some kudos and mark as solution for others to find





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




View solution in original post

1 REPLY 1
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

hey, 

you need to convert the query column with the wanted parameter to list, go to tranform tab and select the wanted column as parameter and convert to list. 

StefanoGrimaldi_1-1619367516285.png

 

if this helped please give some kudos and mark as solution for others to find





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors