Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
how do I write this as a Dax expression?
=sum(field X * field Y)/sum(Field X)
I get an error that the sum function in only expecting one field.
Solved! Go to Solution.
@22LACMT Try:
= SUMX('Table',[field X] * [field Y])/ SUM([field X)
@22LACMT Try:
= SUMX('Table',[field X] * [field Y])/ SUM([field X)
Sorry, it its still giving me errors . I added a filter but am still getting incorrect data
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |