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
lkaneff
Frequent Visitor

Use a Date Parameter created in Power Query as a filter in a measure

I am attempting to retrieve a value from a parameter that I created in Power Query. My goal is to use this parameter in a CALCULATE function with a filter:
CALCULATE(SUM(value), FILTER('Date Table'[Date Column], 'Date Table'[Date Column] = <Power Query Parameter>)).
I tried converting the parameter to a date format in Power Query, but it didn't work. I also attempted using both the CONVERT and DATEVALUE functions to transform the parameter into a date, but neither approach yielded the expected result.  I know I can join a parameter to the calendar table, but if I have a lot of parameters I don't want to join a table every time.  What am I doing wrong?

lkaneff_0-1732547827708.png

lkaneff_1-1732547827709.png

 

My date Parameter in Power Query

Power Query Date Parameter.png

 

 

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @lkaneff ,

 

Power Query parameters are not accessible with DAX. 

 

But DAX has its own similar feature - "what-if parameter", check this:

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @lkaneff ,

 

Power Query parameters are not accessible with DAX. 

 

But DAX has its own similar feature - "what-if parameter", check this:

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if

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.