Forum Discussion
Summarize returns "duplicates"
- Anonymous8 years ago
Hey v-piga-msft,
Thanks for the help. I played around with the query editor and managed to fix the problem using Table.ReplaceValue, replacing null values with empty values (Table.ReplaceValue(F_StockEvent_dummy_table,null,"",Replacer.ReplaceValue,{"BatchID"})). There was no space character in the BatchID, it was just empty while other rows had null.
Hi Anonymous,
By my tests, it may caused by your data source.
When I copy your table to Excel and get data with Excel, create the calculated table with SUMMARIZE. It show like below.
If I confirm each blank value in BatchID is null. It will show like below.
It seems that you may have a space in BatchID, so you will get the issue.
Best Regards,
Cherry
Hey v-piga-msft,
Thanks for the help. I played around with the query editor and managed to fix the problem using Table.ReplaceValue, replacing null values with empty values (Table.ReplaceValue(F_StockEvent_dummy_table,null,"",Replacer.ReplaceValue,{"BatchID"})). There was no space character in the BatchID, it was just empty while other rows had null.