Forum Discussion
ssbagley
Helper III
4 years agoHow to identify duplicates - same amount and date
I am working with employee expense submissions and want to identify lines for the same date and amount and count the number of "duplicates" identified, by employee. I'm relatively new to PowerBi and...
- 4 years ago
ssbagley looked into it and the measure is working as desired.
You need to put all the axis on Don't Summarize
Also, don't use date hierarchy and do the following
ssbagley
Helper III
4 years agoI can't - this is confidential data so I cannot share.
- ssbagley4 years ago
Helper III
This is my code:
CountOfSubmission3 =VAR _COUNT =CALCULATE (COUNT ( 'Misc Sundry'[Local Amount] ),ALLEXCEPT ('Misc Sundry','Misc Sundry'[Employee],'Misc Sundry'[Expense Date],'Misc Sundry'[Local Amount]),FILTER ( VALUES ( 'Misc Sundry'[Local Amount] ), 'Misc Sundry'[Local Amount] <> 0 ))RETURNIF (_COUNT > 1,"DUPLICATE EXISTS","NO DUPLICATE EXISTS")- smpa014 years ago
Community Champion
ssbagley this is the same code as mine and you can see that it perfectly works on my dataset. For me to be able to understand, why it does not do the trick in your dataset, I need to take a look at the reprentative datset.
- ssbagley4 years ago
Helper III
How do I upload/attach a file?