Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
Solved! Go to Solution.
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.
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.
@Amaan See if this helps: Better Weighted Average per Category - Microsoft Power BI Community
and the video:
User | Count |
---|---|
98 | |
90 | |
84 | |
71 | |
67 |
User | Count |
---|---|
114 | |
103 | |
100 | |
72 | |
64 |