Forum Discussion
collis
1 year agoFrequent Visitor
Count duplicates (checking multiple columns) and displaying count in new column
Hello all I am working with data with duplicates; however, I can't remove them as I need to use other columns in other charts. I would ideally like to create the below - where the first three colum...
- Anonymous1 year ago
Hi, collis
You can try the following methods. Start by adding the index column to the Power query.
Count = CALCULATE ( COUNT ( 'Table'[Site] ), FILTER ( ALLEXCEPT ('Table','Table'[Scheduled Start],'Table'[Scheduled End],'Table'[Site]), [Index] <= EARLIER ( 'Table'[Index] ) ) )Is this the result you were expecting?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
collis
1 year agoFrequent Visitor
| Scheduled Start | Scheduled End | Site |
| 3/11/2023 9:00 | 3/11/2023 17:00 | NSW |
| 8/11/2023 9:00 | 8/11/2023 17:00 | NSW |
| 10/11/2023 9:30 | 10/11/2023 10:30 | NSW |
| 10/11/2023 10:30 | 10/11/2023 11:30 | NSW |
| 10/11/2023 10:30 | 10/11/2023 11:30 | NSW |
| 13/11/2023 13:00 | 13/11/2023 16:00 | NSW |
| 13/11/2023 13:30 | 13/11/2023 21:30 | NSW |
| 14/11/2023 9:30 | 14/11/2023 17:30 | NSW |
| 16/11/2023 9:00 | 16/11/2023 17:00 | NSW |
| 16/11/2023 12:00 | 16/11/2023 20:00 | NSW |
| 17/11/2023 11:30 | 17/11/2023 19:30 | NSW |
| 22/11/2023 11:30 | 22/11/2023 11:30 | NSW |
| 22/11/2023 11:30 | 22/11/2023 19:30 | NSW |
| 23/11/2023 9:30 | 23/11/2023 17:30 | NSW |
| 24/11/2023 9:00 | 24/11/2023 17:00 | NSW |
| 24/11/2023 9:00 | 24/11/2023 17:00 | NSW |
| 24/11/2023 9:00 | 24/11/2023 17:00 | NSW |
| 24/11/2023 9:00 | 24/11/2023 17:00 | NSW |
| 27/11/2023 11:00 | 27/11/2023 14:00 | NSW |
| 29/11/2023 9:30 | 29/11/2023 17:30 | NSW |
| 29/11/2023 9:30 | 29/11/2023 17:30 | NSW |
| 29/11/2023 9:30 | 29/11/2023 17:30 | NSW |
| 29/11/2023 10:00 | 29/11/2023 18:00 | NSW |
Many thanks
Anonymous
1 year agoNot applicable
Hi, collis
You can try the following methods. Start by adding the index column to the Power query.
Count =
CALCULATE ( COUNT ( 'Table'[Site] ),
FILTER (
ALLEXCEPT ('Table','Table'[Scheduled Start],'Table'[Scheduled End],'Table'[Site]),
[Index] <= EARLIER ( 'Table'[Index] )
)
)
Is this the result you were expecting?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.