Forum Discussion
SUMX issue
- 6 years ago
Please try this one. It gets the same results on rows and correct total. This is the more logical way I should have written it in the first place.
New SUMX =
SUMX (
SUMMARIZE ( Invoice_items, Invoices[Inv_No], Invoice_items[Product] ),
CALCULATE (
DIVIDE ( SUM ( Receipts[Amount] ), SUM ( Invoices[Amount] ) )
* SUM ( Invoice_items[Amount] )
)
)If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Hi Greg_Deckler ,
Thanks for your reply.
Although your suggested mesure will work at row level, the total will not tot up correctly as it's not an iterated expression.
fbarry - For the measure total issue, use this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
- fbarry6 years agoFrequent Visitor
Hi Greg_Deckler ,
I've had a look at your Final Word post (which is a great article btw). However, the Summarize function does not appear to like my
[Inv % Paid] measure. It's just returning blank results when this measure is used in the expression.