Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Gallons consumed is a measure that is supposed to take the Sum of Total Miles divided by the Average MPG. MPG is also a measure that is Sum of Total Miles divided by Sum of Gallons Purchased.
So ideally, it would be
IL - 327053.96 / 5.70 = 57377.89 gallons consumed
IN - 573683.22 / 5.70 = 100646.18 gallons consumed
OH - 35671.18 / 5.70 = 6258.10 gallons consumed
But right now it is diving by 9.87, 4.51. and 9.37 and just equaling the sum of gallons purchased.
How can I get it to divide by the average of the MPG on my table?
Solved! Go to Solution.
Gallons Consumed = DIVIDE(SUM(Table[Total Miles]), CALCULATE([MPG],ALL()))
Gallons Consumed = DIVIDE(SUM(Table[Total Miles]), CALCULATE([MPG],ALL()))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |