Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Terrassa
Helper I
Helper I

How to sum average values

Hello,

 

I'm receiving invoices for PC leasing, some invoices contains some PC models and some invoices contain other models. The cost is not the same for all the PCs with same model, so I'm working with average cost per model based on the last invoice received for each model. I need to calculate the total monthly cost for all the PCs.

 

Terrassa_0-1701853744029.png

 

The grand total should be the sum of all the values in "Average monthly cost based on last invoice", but it's actually calculating the total cost of only the PCs received on the last invoice (25 PCs received on Sept. invoice), using the average cost of all of them regardless of the model.

 

How can I calculate the total sum of the last column?

2 REPLIES 2
ryan_mayu
Super User
Super User

maybe you can try 

sumx(values([pc model],[the meausure of last column])





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




With the formula you indicated I'm getting the following error:

Too many arguments were passed to the VALUES function. The maximum argument count for the function is 1.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.