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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
YannDV13
New Member

Using a Power Query Parameter in my DAX Import code (Analysis Service)

Hi everyone, 

 

I am struggling with a small problem which already took me hours so I am coming to you guys for some help. 


Context : 
I am working on a power BI report, sourced to a Analysis service (SASS TABULAR) in import mode with a DAX Code (not in directquery). 
In my DAX code, one of my filter in a Date 

 

Filter(Keepfilters(Values(Table[Date])),AND(Table[Date]>=DATE(2024,1,1),Table[Date]<TODAY()))

I want to replace the date from with a parameter from power query. The problem is that I struggle to refer the parameter in the DAX code...
Is it possible ? 

 

Thanks a lot for your help,

 

Y.

3 REPLIES 3
YannDV13
New Member

I succeded to add a parameter in my dax code:
What I did is create my parameter in Power Query, reference a new parameter (related to my Power Query Parameter) in the advance editor, and use the new parameter in my filter. 
Now, when i change the parameter in Power Query, it update my Dax code. 

yes, but it will only do that upon semantic model refresh, not based on user interaction with the report.

lbendlin
Super User
Super User

Dynamic Query parameters only work with Direct Query data sources.  Your import mode data source is an immutable snapshot that doesn't care if you change parameters.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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