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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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 Solution Authors