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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
akashsingh
New Member

Date

Dear Community, 

 

I need to filter a Gantt Chart to show the list of ongoing projects between a specified period. 

However when i use the Slicer for the start and end date, it only uses the exact inputs from each field to determine the range.

i.e. it looks for a project that starts on specifc date and ends on a specific date, and hence doesnt list those inbetween the ranges.

 

What i am looking for is to:
1. specific the start and end of the period

2. see all of the projects that are ongoing in that period

 

what is the best way to do this? i have played around with the style of the slicers for both and none quite support what i need the output to be. 

 

Here is a sample view of the dataset 

Employee NameProjectTypeProject DescAllocationStart DateEnd Date
John SmithCharageableBuilding House95%2022/09/012023/28/31
John SmithTrainingElectrician Training5%2023/02/202023/02/23
Aiden KingUnassignedN/A100%2022/12/01 
Ian FletcherCharageableDoing Plumbing100%2022/09/012026/08/31
Gary GreenUnassignedN/A100%2023/01/25 
Timothy StuartCharageableBuilding Houses100%2023/01/152024/11/30
Timoty StewartVacationApproved Leave100%2023/03/142023/03/17

 

Your help will be appreciated. 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

My idea is to create one row for each date between the start and end date.  However, this will give rise to a lot of rows (more so because you have dates starting from year 2022 ad going up till year 2026).  We can reduce the number of rows drastically by creating one row dor each month between the start date and end date.  However, in the slicer then you will not be able to see the status between any two random dates.  You will only be able to select months.  Will this appoach work for you?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ppm1
Solution Sage
Solution Sage

This works best with a disconnected Date table (or you need to remove the filter from the Date table if there is a relationship). You store the min and max dates from the Date table in variables and then COUNTROWS of your table where the EndDate is >= min date and the StartDate is <= max date.

Events in progress – DAX Patterns

 

Pat

 

Microsoft Employee

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.