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
Anonymous
Not applicable

Sum on Max value

Hi there,

 

I have a measure  (I created Commulative total in SQL table) 

Gross Billing_C = Calculate(
max(BillingStatus[INV_AMT_C]) - max(BillingStatus[IMEMO_AR_AMT_C]),
Filter(JobComplete,JobComplete[YER] = SELECTEDVALUE(BillingStatus[YER])),
Filter(JobComplete,JobComplete[PER] = SELECTEDVALUE(BillingStatus[PER])),
filter(AR_AgedReport,AR_AgedReport[CJKEY] <> "")
)
This measure works fine but when it shows in a table(multiple rows) the total is not accurate 
It shows the Max value of whatever row is max value and not the sum of all rows
How do I solve it? - another word how to make table TOTAL sows sum regardless if it MAX or MIN in the rows
Thanks
Oded Dror
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Refer this :https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013

If it does not help.

Can you share sample data and sample output. If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Refer this :https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013

If it does not help.

Can you share sample data and sample output. If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
smpa01
Super User
Super User

@Anonymous  is there any chance you can provide a small sample that is representative all the columns used in your measure as well as a column with your desired output. Hard to devise a solution otherwise.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Hi there,

 

Thank you for the response my problem was (I found that later) I had multiple periods that way the summation wase't correct.

After I fix that it return the expected results. 


My whish list is to get total on matrix regardless if it is Max, Min Avg or any other cumputation like the table visual

Thanks,

Oded Dror

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.