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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors