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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

what-if parameter to a column

I have a What-if parameter which takes whole number (1, 2, 3, 4 ,5)

I want to pass the value of it to add to a calculated column like below. but seems i'm unable to do it

ParameteredDate = Merge1[ACTUAL_DATE]+ 'Accuracy Parameter'[Accuracy Parameter Value]



sanjusanj21_0-1604221182897.png

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

You cannot add Parameter value to Calculated Column. Calculated Columns are computed and stores in advance so it cannot be dynamic. 

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

6 REPLIES 6
mahoneypat
Microsoft Employee
Microsoft Employee

Calculated columns are refreshed only when the data are refreshed and don't respond to slicers.  However, you are showing a table visual in your pic, so perhaps you mean you want a measure (that will respond to slicer selections) to be used to create a column in your table visual.  Is that correct?  The terminology can be confusing.  If so, you can use a What-If parameter to dynamically change the range of dates your table visual shows.

 

You just need to use an aggregation on your date (e.g., MIN(Table[Actual Date]) and add that to your parameter value in your measure.

 

ParameterEndDate = MIN(Table[Actual Date]) + [Accuracy Parameter Value]

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

@mahoneypat 
i tried  as you siggested, but did not work.

You need to do it in a measure, not in a calculated column.  What-If Parameters can't be used in calculated columns.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Fowmy
Super User
Super User

@Anonymous 

You cannot add Parameter value to Calculated Column. Calculated Columns are computed and stores in advance so it cannot be dynamic. 

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy 

Thank you so much for replying.

is there any other way to pass user input to a calculate date field

@Anonymous 

 

Sorry, currently there is no option to incorporate user selection in calculated columns.

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.