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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

How to use parameter in dax formulas?

Hey!

 

I have two columns (Gross investments and Net investments) and I created a parameter of these 2 columns. Now I would like to create some calculated measures (For example "Investments past year", "Investments difference Past Year", etc), using that column values, which is selected from parameter (Gross invetments or Net investments values). In short, i would like to know, which dax functions i have to use, so my calculated measures would be dynamical based on selected value on parameter.

 

Created Parameter:

ReikoK_0-1682062259205.png

 

3 REPLIES 3
lbendlin
Super User
Super User

When you add Field Parameters to your report you get the boilerplate code for these too. and you can then refer to the parameter as if it were a measure.

But thats not the case with ordinary parameters, is it? I suppose you could do something clunky like create a new query per parameter...

Ordinary parameters (the ones you define in Power Query) by default do not load into the semantic model as they are expressions.  (They do show up in the Power BI service). 

 

To make them accessible in the semantic model you need to change them into partitions.  ("Enable Load").  Note that these are NOT dynamic.  Think of them as the equivalent of calculated columns, NOT as the equivalent of measures.  Changes in the parameter are only picked up during the semantic model refresh.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors