Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
95 | |
80 | |
74 | |
66 |
User | Count |
---|---|
130 | |
106 | |
105 | |
86 | |
72 |