cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

How to reference a parameter to a DAX function ?

Is it possible to reference a parameter to a DAX function and how ?

4 REPLIES 4
ankitpatira Community Champion
Community Champion

Re: How to reference a parameter to a DAX function ?

@aghonaim In power bi desktop go to query editor -> right click your parameter and ensure Enable Load is checked. Then Parameters are just like any other query in Power BI Desktop and so you can reference them in DAX expressions.

 

Capture.JPG

Re: How to reference a parameter to a DAX function ?

Assume I want to create a cacluated column that multiply column "A" in Table 1 by the paramater "Pam". I got this error:

 

Power BI.png

Microsoft
Microsoft

Re: How to reference a parameter to a DAX function ?

Hi @aghonaim,

In Power BI Desktop, we are not able to use Parameters in calculated columns.  Regarding to this issue, you can vote it in the following existing idea.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/12891723-parameters-calculated-fi...


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

Re: How to reference a parameter to a DAX function ?

OK I did vote, thanks!

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors