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
kristty1805
Frequent Visitor

conflict with dates and time

Hello.

Please help me with this. I have several names with different UIDs(Unified Identificator).

The problem is that sometimes the same person have different meetings at the same time. For example: Tomas starts date at 3pm and finish at 4pm but at the same day, starts date at 1pm and finish at 4pm. so he will have a confict of time from 3pm to 4pm. 

How can I make a conditional or using DAX to show that there is a conflict with the time for that person.

I attach a picture so you can see what I meanWhiteboard_2021_3_17[6064].png

1 ACCEPTED SOLUTION
Payeras_BI
Solution Sage
Solution Sage

Hi @kristty1805 ,

Add a Custom Column to your table with this code:

= Table.AddColumn(Your_previous_step, "# Overlapping tasks", (x)=> Table.RowCount(Table.SelectRows(Your_previous_step, 
each (_[UID] = x[UID]) and (_[Task] <> x[Task]) and (_[Start]<= x[End]) and (_[End] >= x[Start])))>0)

Payeras_BI_1-1616149046244.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

5 REPLIES 5
Payeras_BI
Solution Sage
Solution Sage

Hi @kristty1805 ,

Compare your code with the one provided. There is an extra "each".

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Hello @Payeras_BI ,

 

Just in case, is there any way on using a measure instead of an standard column?

Thank you, It works!! 🙂

Payeras_BI
Solution Sage
Solution Sage

Hi @kristty1805 ,

Add a Custom Column to your table with this code:

= Table.AddColumn(Your_previous_step, "# Overlapping tasks", (x)=> Table.RowCount(Table.SelectRows(Your_previous_step, 
each (_[UID] = x[UID]) and (_[Task] <> x[Task]) and (_[Start]<= x[End]) and (_[End] >= x[Start])))>0)

Payeras_BI_1-1616149046244.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

I have this message. Which parameter should I insert? @Payeras_BI 

kristty1805_0-1616164231222.png

 

kristty1805_1-1616164259258.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.

Top Kudoed Authors