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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
JulietteGSA
Frequent Visitor

Formulas using parameters

Hi everyone,

 

I am trying to create a column that uses a parameter.

My parameter will be a date, and I need to fill my column according to an "IF" formula that compares the dates from another column to my parameter date, but I don't know how to address my parameter in DAX language.

I tried to put an "#" before the name of my parameter in the formula but that doesn't work.

 

Could you help me please?

 

Thanks

 

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @JulietteGSA,

 

It would be easy if we create a table directly. There is similar feature "What if" that only support numbers for now. Please also refer to How-to-reference-a-parameter-to-a-DAX-function/td-p/60517 and dynamic-parameters-for-what-if-analysis.

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ChrisMendoza
Resident Rockstar
Resident Rockstar

Hello @JulietteGSA,

 

According to sqlbi.comIn order to have a parameter in a measure, you need a table with a column that contains all the possible values you might want to use... allows transferring a value through the filter context".

 

You should include sample data with your expected outcome and maybe we can assist further.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.