Forum Discussion
Surprised : Values not adding up for few dates in the table
Dear All,
I am trying to simply find the TOTAL of 'OT Attach' business and the problem i am facing is values for date 4/17/2020 is not addaing up. Value for 4/27/2020 is 100K less. The data snap shot and the DAX used is listed below. If i simply copy the data from Power bi table to excel the total adds up correctly to $814 K but when i sum it up using DAX it is showing only $614 K. Kindly help me.
The DAX i am using to total the column is as below. I tried 2 DAX. Both are giving me same results.
DAX # 1 used to sum the table is : OT Attach-TCV = sum('Master-Funnel (2)'[OT Attach-TCV])
DAX # 2 used :
OT Attach-TCV =
VAR __table = SUMMARIZE('Master-Funnel (2)','Master-Funnel (2)'[Close Date],"_Value",sum('Master-Funnel (2)'[OT Attach-TCV]))
RETURN
IF(HASONEVALUE('Master-Funnel (2)'[Close Date]),sum('Master-Funnel (2)'[OT Attach-TCV]),SUMX(__table,[_value]))
- Anonymous6 years agoUsing SUMMARIZE in measures for anything more than just grouping rows is a very bad idea. Please do not do this if you want to create safe and correct DAX. If you want to know why it's a very bad idea, please read this:
https://www.sqlbi.com/articles/all-the-secrets-of-summarize/
Best
D
3 Replies
- AnonymousNot applicableUsing SUMMARIZE in measures for anything more than just grouping rows is a very bad idea. Please do not do this if you want to create safe and correct DAX. If you want to know why it's a very bad idea, please read this:
https://www.sqlbi.com/articles/all-the-secrets-of-summarize/
Best
D - KRISH80
Helper II
Can someone kindly help / advise. I badly need help with this.- camargos88
Community Champion