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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
db042190
Responsive Resident
Responsive Resident

plumbing params to the query rather than rows

Hi, I just added my first param.  And plumbed it to a column produced by my data source query.  What if i want to plumb it to the query iteself?  For instance in the datasource query's dax calculate function instead of a condition ending in >=datevalue("01/01/2015"), having a param replace the date string?

8 REPLIES 8
v-shex-msft
Community Support
Community Support

Hi @db042190,

 

According to your description, you want to use the query parameter at power query side, right?
If this is a case, I'd like to suggest you refer to below article.

How to pass the date parameters in PQ Query?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

depends.  Is my dax query converted to PQ behind the scenes?  And then i would need to get to the PQ query and modify it to use my param?

Hi @db042190,

 

No, dax formula not affect the power query, it only works on data model who generated by power query source data table.

The only way is use query parameter to effect power query source data.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

thx Xiaoxin.  Trying to understand.  I'm not sure what PQ is.  It looks like an excel transformation feature.  I have a tabular model.  Not excel.  Are you saying that the only way to get PBI parameters to "substitute" for conditions in a query is for the query to be PQ in the first place?

Hi @db042190,

 

Actually, power bi use power query function to get data from other sources.(you can click on 'edit queries' to enter to the query editor)

 

Processing steps:
1. Power query get data from other source and convert to table.
2. After you exit the query editor, power bi will analysis these tables and generate the matched data model.

 

Dax formula are based on these data model, it isn't affect the source data.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

thx.  I saw pbi work with a dax query.  can conditions in that dax query be substituted by parameters?  or only conditions in a PQ query?  Trying to understand.  I will be sitting with someone soon who might shed some light on the whole subject.

Hi @db042190,

 

Power query with query parameter is filter on source data, it will effect generated data model. dax formula works on data model, so it will also been affected.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

thx, so if i am providing a dax query to pbi, and i want pbi params to be sustituted for some kind of symbolic placeholders in my query, how do i do that?  If i'm not understanding, that's ok because i'm going to be getting clarification on this subject in person in the coming days.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.