How do I create a timeline slicer that allows users to view overlapping events

0 votes

How do I create a timeline slicer that allows users to view overlapping events?
I need a timeline slicer in Power BI that enables users to filter and view overlapping events, such as project phases or campaign periods. The slicer should allow selecting a date range while ensuring that events spanning multiple dates remain visible. What is the best way to implement this using Power BI’s native slicers or a custom approach with DAX?

8 hours ago in Power BI by Evanjalin
• 19,960 points
7 views

1 answer to this question.

0 votes

Creating a timeline slicer in Power BI for visualizing events that are overlapping takes a series of steps described thus:

1. Create a Date Table

Create a completely dedicated date table with a continuous date range. There will be a relationship between the date table and your event table based on the event's start date or end date.

2. Create a Range Slicer for the Date

Introduce a date range slicer that can be selected from the date table so that users can choose a range. Make sure to set it in Between mode so that it allows the user flexibility.

3. Create DAX Measure for Overlap Events

Adopt a measure that would tell which events fall within the selected range: 

ShowEvent =  
VAR SelectedStart = MIN('DateTable'[Date])  
VAR SelectedEnd = MAX('DateTable'[Date])  

RETURN  
IF(  
    MAX(Events[StartDate]) <= SelectedEnd &&  
    MAX(Events[EndDate]) >= SelectedStart,  
    1,  
    0  
)

4. Apply a Visual-Level Filter

  • Add this measure to your event table visuals (table, matrix, Gantt chart, etc.).
  • Filter the visual to show only rows where ShowEvent = 1.
answered 8 hours ago by anonymous
• 19,960 points

Related Questions In Power BI

0 votes
0 answers
0 votes
0 answers
+1 vote
3 answers

How do I create a flexible date range slicer that allows users to switch between monthly, quarterly, and yearly views?

Proper date hierarchy and dynamic date filters ...READ MORE

answered Nov 12, 2024 in Power BI by pooja
• 16,900 points
183 views
0 votes
0 answers
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,539 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,883 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,664 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Open power bi report nd sign in ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited Mar 5 1,814 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP