This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I am unable to get a proper weighted average. I have revenue data... The way I try doing it:
RevExclu =
CALCULATE (
SUM ( Revenue[Revenue] ),
FILTER ( 'Sectors', NOT 'Sectors'[Sec] IN { "xyz", BLANK () } )
)(I have to exclude some revenue)
Then I get the total per UP:
TotalPerUP = SUMX ( SUMMARIZE ( Revenue, 'Customer'[UP] ), [RevExclu] )
Then I get the max Sec per UP. (doesn’t matter which Sec, but the revenue sum value).
MaxSecPerUP = MAXX ( SUMMARIZE ( Revenue, 'Customer'[UP], 'Sectors'[Sec] ), [RevExclu] )
Then I get the metric which Is total/max:
MetricUp = DIVIDE ( [TotalPerUP], [MaxSecPerUP], BLANK () )
Then; I should go one level up and do the the weigthed average of this metric… Should be SUM( metric x size) / Total
The upper level is Lead (each Lead has many UPs)
I have the total:
TotalPerLead = SUMX ( SUMMARIZE ( Revenue, 'Lead'[Lead] ), [RevExclu] )
Now I need to go each UP by UP and do (Metric x Size) (and then do a SUM of all that...)
That is, go UP by UP and do [TotalPerUP]*[MetricUp]
(I have only achieved it using ALLEXCEPT, but I would prefer not using it since it removes my filters…) How can I do it?
Hi @Anonymous ,
Would you please show us sample pbix file? I'm not getting clear from your description without sample data.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |