Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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
 

3 Replies