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.
Hi,
Need help in getting the logic for calculating the weighted average by Revenue at different aggregtion level. The weighted average should be dynamic based on the permutation & combinations through various filter selection ( have 8 filter on my view) Stating an example below:
At level 4, its a straight forward activity. However as I aggregate at Level 3/2/1, instead of having a straight line average, I need weightage average which should be dynamic based on my filter selection
Incase, I select India in country filter, it should dynamically update the weighted average @ level 3 to 5.5 or 8 incase of US. Dynamic change should also apply if I include/exclude any row. Say, weighted average at level 2 for score 1 is 6. however this dynmically calculate if I excluded any of the level 4 based on any filter selection.
Inorder to relate the filter shown above to the example,
Business - Level 0
Pipeline - Level 1
Product Line - Level 2
Product - Level 3
Project - Level 4
Apologies, If I'm all over the place. have been breaking my head on this for past 2 days.
Looking for early help. THANKS IN ADVANCE
@nsingh07 , did you ever find a solution to your issue? I am stuck with the same questions right now.
Hi @nsingh07 ,
Please refer to my .pbix file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply. Though this meets the desired result, UNPIVOT of data is not an option because report has multiple charts.
Instead, is it possible to get the result with a DAX calculation in the tabular form like in the example in my initial post.
For example: For Level3 weighted ratio(assume Level4 is lowest granular column), for each row I need
(revenue for that row) / (sum of revenue for corresponding Level3 value across entire dataset)
To elaborate further,
Level4 column, first row has value "A" and Revenue is "100" and corresponding Level3 value is "AA"
So, I would need:
FYI, I'm new to Power BI hence a detailed post would be very helpful.
Thanks.
@Ashish_Mathur tagging you since saw few of your post on this topic.
Hi,
I have read your question a few times over but just cannot understand what you want.
I need help indefining a logic / DAX to calculate the weighted average score at different aggregation level (1/2/3) dynamically based on the filter selection
Can someone please share the logic for calculating weighted average based on slicer selection
TIA
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |