Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Dominik82
Frequent Visitor

Identify duplicates across 2-x column combinations

Hello PowerBI Users

 

currently I'm searching for a solution to mark double entries in a timetable->employee list.

My table looks like this:

StartTimeDateEndTimeDateEmployee
01.01.2024 08:00:0001.01.2024 13:00:00a
01.01.2024 08:00:0001.01.2024 14:00:00b
01.01.2024 08:00:0001.01.2024 15:00:00a
01.01.2024 09:00:0001.01.2024 16:00:00c

 

Now I need a DAX formular to find duplicates in the combination StartTimeDate+Employee (in the example table should be row 2 and 4), and another formular to find a duplicate in the combination StartTimeDate+EndTimeDate+Employee

 

Maybe someone has a solution?

 

Thanks and best regards, Dominik

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Anonymous
Not applicable

Hi @Dominik82 ,

@Ahmedx ,good answer!
And you can also use EARILER in the DAX:
Use these DAX to create new columns:

Start + Employee = 
IF(
    COUNTROWS(
        FILTER(
            'Sheet23',
            'Sheet23'[StartTimeDate] = EARLIER(Sheet23[StartTimeDate]) && 
            'Sheet23'[Employee] = EARLIER(Sheet23[Employee])
            )
    ) > 1,
    1,
    BLANK()
)
Start + End + Employee = 
IF(
    COUNTROWS(
        FILTER(
            'Sheet23',
            'Sheet23'[StartTimeDate] = EARLIER(Sheet23[StartTimeDate]) && 
            'Sheet23'[EndTimeDate] = EARLIER(Sheet23[EndTimeDate]) &&
            'Sheet23'[Employee] = EARLIER(Sheet23[Employee])
        )

    ) > 1,
    1,
    BLANK()
)

The final output is as below:

vjunyantmsft_0-1706754530898.png


Best Regards,
Dino Tao
If these posts help, then please consider both of the answers to Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Dominik82
Frequent Visitor

Thanks for your help.
That helped me a lot 😊

Anonymous
Not applicable

Hi @Dominik82 ,

@Ahmedx ,good answer!
And you can also use EARILER in the DAX:
Use these DAX to create new columns:

Start + Employee = 
IF(
    COUNTROWS(
        FILTER(
            'Sheet23',
            'Sheet23'[StartTimeDate] = EARLIER(Sheet23[StartTimeDate]) && 
            'Sheet23'[Employee] = EARLIER(Sheet23[Employee])
            )
    ) > 1,
    1,
    BLANK()
)
Start + End + Employee = 
IF(
    COUNTROWS(
        FILTER(
            'Sheet23',
            'Sheet23'[StartTimeDate] = EARLIER(Sheet23[StartTimeDate]) && 
            'Sheet23'[EndTimeDate] = EARLIER(Sheet23[EndTimeDate]) &&
            'Sheet23'[Employee] = EARLIER(Sheet23[Employee])
        )

    ) > 1,
    1,
    BLANK()
)

The final output is as below:

vjunyantmsft_0-1706754530898.png


Best Regards,
Dino Tao
If these posts help, then please consider both of the answers to Accept it as the solution to help the other members find it more quickly.

Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.