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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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...

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...

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.