Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Updated: 3/2/2023 @ 250PM
Hi,
I have an issue I ran into with using a quick measure for weighted average. I listed my formula below. But basically realized my issue is that the "Value" formula only brings over unique values. So when I have two entries that are both 95. The weighted average should be 95, as they are both the same... but it gives me 190. Is there a different forumula I should use other than Values to give me all values, not just unique?
Sample Table (all value do not change. Once inputed they never change):
UPB LTV
A 300,000 95.00
B 100,000 95.00
C 200,000 80.00
Note: I simply use slicers to filter out with loans I am analzying together. So scorecard with this measure below shows weighted avgerage or is supposed to. Does not work properly as discribed below.
Current Formula:
Solved! Go to Solution.
@azale2407 , Try like
Divide(SUMX('Sample Table','Sample Table'[LTV] * 'Sample Table'[UPB]), calculate( SUM('Sample Table'[UPB]), allselected()))
@azale2407 , Try like
Divide(SUMX('Sample Table','Sample Table'[LTV] * 'Sample Table'[UPB]), calculate( SUM('Sample Table'[UPB]), allselected()))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |