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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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