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
pbmartin
New Member

Gantt Chart with Measure

PowerBI Newbie here.  With an Excel table as by datasource, I would like to build a Gantt chart that aggregates Task Category then shows the minimum Start Date and a Duration that is the difference between the minimum Start Date and the maximum End Date of all the Tasks that have the Task Category. I set up a Measure to calculate the minimum Start Date, but the Power BI Gantt Chart won't allow me to use it as the Start Date.  The DAX for the measure (named "Start") is "Start = DATEVALUE(MIN(Tasks[In-Home]))".  What am I doing wrong?

2 REPLIES 2
Seward12533
Solution Sage
Solution Sage

Measures have to be with aggregate calculations. Datevalue (if it’s even a Dax function) is a discrete calculation. Should just simply be

"Start = MIN(Tasks[In-Home]) // assumes Tasks[In-Home] is a date.

Hi @Seward12533,

Due to the nature of Gantt Chart, a start date for each task is essential. So we can not use a measure in a start-date level, we must put a column there. It's a truth after test. Please rethink your sample data and feature of Gantt Chart.

Best Regards,
Angelia


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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors