Forum Discussion
abdulmannan1991
6 years agoHelper II
Create a Column using values from Parameter
Hello, Please assist with the following challenge: Task: I want to create a column in a custom table (Month 1 to 24) which should take values from a What-IF Parameter. Any change in Parameter sli...
- 6 years ago
Hi abdulmannan1991 ,
Yes, as nandukrishnavs mentioned, the slicer can't change calculated column dynamically, so you need to use measure to achieve this goal, you could try below measure
total = IF(HASONEVALUE('Month table'[MONTH NAME]), SUM('MONTH'[MONTH]), SUM('MONTH'[MONTH])*24)Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
nandukrishnavs
6 years agoCommunity Champion
abdulmannan1991 - We cannot create a dynamic calculated column based on what-if parameter. Instead, I would recommend you to create a measure.
Please refer to this link-https://community.powerbi.com/t5/Desktop/Calculated-Column-Table-Change-Dynamically-According-to-Slicer/td-p/537933
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂