Forum Discussion

Amaan's avatar
Amaan
Frequent Visitor
3 years ago
Solved

Need Help with MEASURE

I have a few columns of a product table that I need to put in a measure. The columns are revenue, profit and margin. 
What I need is a measure that can help me assign certain weightage to each of these columns. 
For eg, - I need weightages of Revenue to be 40%, Profit be 25% and Margin be 35%. 
This way for every product that I select from the product name slicer, the measure gives me a number that is calculated from these 40,30,30 percentages. 
So if product 1 is selected, and it has revenue as 100, profit as 10 and margin as 30, so it should convert them into respective weightages and give me a final number.

 

I hope I am clear enough in my query. Pardon me for my unclear language if any, as I am only a 1-month user of power BI.

  • Hi Amaan ,

     

    You can try this method:

    I assume the percentage is 40%,25%,35%.

    Here is my sample data:

     

    New measure:

    FinalNumber = SELECTEDVALUE('Table'[revenue]) * 0.4 + SELECTEDVALUE('Table'[profit]) * 0.25 + SELECTEDVALUE('Table'[margin]) * 0.35

     

    The result is :

    Is this what you expect?

    Hope this helps you.

    Here is my PBIX file.

     

    Best Regards,

    Community Support Team _Yinliw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies