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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
cdeletre
Frequent Visitor

Gantt sub-tasks issues with matrix

Hello !

 

I'm trying to make a gantt chart using a matrix for a project.

 

The principle is that a project is defined by a start date and an end date, I define a table that includes the 12 months of the year, and for each month I calculate if the project slot is during that month, if so I put the value of the column "type" otherwise I put 0. And the display is done according to the conditional formatting.

 

IsProjet =
VAR CurrentMonth = SELECTEDVALUE('Month'[EndOfMonthDate])
RETURN
IF(
CurrentMonth >= EOMONTH(MAX(data[DateStart]), 0) && CurrentMonth <= EOMONTH(MAX(data[DateEnd]),0),
MAX(data[Type])
,
0
)

cdeletre_0-1682330675273.png

 


On the principle it is not so bad, however I do not manage to have this distinction if a project with two stages, on the following example we can see that the sub-tasks are done correctly but the sum by "column" does not correspond... in short the problem comes from the sums of the sub-columns but impossible to make it work, if somebody has an idea...

 

cdeletre_1-1682331221237.png

 

 

I've seen quite a few posts on the forum related to matrix totals and subtotals but I haven't managed to find the solution.

Thanks in advance!

 

The link of the simplified project: https://drive.google.com/file/d/1R3ve_IHF_RH4EZHrkqN3h9vurlyoaSwv/view?usp=share_link

1 REPLY 1
cdeletre
Frequent Visitor

up

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!

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