Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

multiply parameter value with a column

I want to multiply a parameter value with a column in my table and display the multiplied value in another column (matrix visualization).

 

I have created a what-if parameter as I want the input to be user defined, but I'm not able to figure out the correct DAX formula. I've attached the pbix file below for reference.

https://drive.google.com/file/d/1EAjpBP6U3pH3geX_6RrsY_zOrfEIzGz1/view?usp=sharing 

 

For eg, If I fill parameter as 1.5, the expected output should be:

 

CategoryBalanceMultiplied value
A22143321
B24553682.5
C10261539

 

Please let me know if there's another way to achieve this.

  • Anonymous ,

     

    You just need to create a measure to multiply the value and the parameter value, like:

    _NewValue = SUM('Table'[Balance]) * Parameter[Parameter Value]

     

    Check the attached file.

     

     

1 Reply

  • camargos88's avatar
    camargos88
    Community Champion

    Anonymous ,

     

    You just need to create a measure to multiply the value and the parameter value, like:

    _NewValue = SUM('Table'[Balance]) * Parameter[Parameter Value]

     

    Check the attached file.