cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hutchisoni
Frequent Visitor

Highlighting Overlapping Bookings

Hi

 

I have a bookings table with BookingID Startdatetime and Enddatetime and CustomerID.

 

I want to highlight if a customer books two bookings that overlap. (eg. First booking is from 6pm to 7pm but that customer also makes a booking on the same day at 6:30pm to 7:30pm).

 

Can anyone help with this? Im struggling with it.

 

Thanks

 

Ian

2 ACCEPTED SOLUTIONS

Accepted Solutions
Hutchisoni
Frequent Visitor

Re: Highlighting Overlapping Bookings

I have attached sample data below. The highlighted memberID's are the same person, however they have booked into 2 classes that overlap. Is there a way I can easily report on who has booked on classes that either start at the same time or overlap..

 

Many thanks

 

sample.JPG

View solution in original post

Highlighted
Microsoft v-danhe-msft
Microsoft

Re: Highlighting Overlapping Bookings

Hi @Hutchisoni ,

Based on my test, you could try to use a measure to format your data:

Sample data:

1.PNG

Create below measure:

Measure = IF(CALCULATE(SUM(Table1[MemberID]))<>MAX('Table1'[MemberID]),"#F2C80F")

Use the Advanced control function:

1.PNG

Hope it could help you.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Microsoft v-danhe-msft
Microsoft

Re: Highlighting Overlapping Bookings

Hi @Hutchisoni,

Could you please offer some sample data and post your desired result if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hutchisoni
Frequent Visitor

Re: Highlighting Overlapping Bookings

I have attached sample data below. The highlighted memberID's are the same person, however they have booked into 2 classes that overlap. Is there a way I can easily report on who has booked on classes that either start at the same time or overlap..

 

Many thanks

 

sample.JPG

View solution in original post

Highlighted
Microsoft v-danhe-msft
Microsoft

Re: Highlighting Overlapping Bookings

Hi @Hutchisoni ,

Based on my test, you could try to use a measure to format your data:

Sample data:

1.PNG

Create below measure:

Measure = IF(CALCULATE(SUM(Table1[MemberID]))<>MAX('Table1'[MemberID]),"#F2C80F")

Use the Advanced control function:

1.PNG

Hope it could help you.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors