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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

How to pass parameter to a DAX Query

Hi all,

I am working on building a report that uses a Power BI Data Source. I need to be able to pass a parameter to the DAX Query. I am not able to get this to work. Any ideas how this is done?

 

Thank you!

 

Seyed

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

To pass a parameter to a DAX query in Power BI, you can use the SELECTEDVALUE function. This function allows you to returns the value when the context for columnName has been filtered down to one distinct value only.

You can create a table and then bind a column field to your parameter. Binding a field to a parameter means that as the selected field value changes, the value passes to the parameter and updates the query that references the parameter.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you so much Jianbo for your assistance!

v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

To pass a parameter to a DAX query in Power BI, you can use the SELECTEDVALUE function. This function allows you to returns the value when the context for columnName has been filtered down to one distinct value only.

You can create a table and then bind a column field to your parameter. Binding a field to a parameter means that as the selected field value changes, the value passes to the parameter and updates the query that references the parameter.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.