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
Belle2022
Frequent Visitor

Total Sum by Column (Matrix)

Created a gantt chart using matrix. I want to display the row total count with value for each date. Below is the image on the table i've been working out, together with the formula that I used to display the value in the table. 

This is my current Gantt Chart.This is my current Gantt Chart.


This is the output that I intended to do.This is the output that I intended to do.

This is the formula that I used to get the value in the matrix :

column values =
VAR _startdate =
CALCULATE(
min('Task Tracker'[start date]),
all('Date'[Date])
)
var _enddate =
calculate(
max('Task Tracker'[expected end date]),all('Date'[Date])
)

var _status =
CALCULATE(max('Task Tracker'[current status]),all('Date'[Date]))
var _period =
min('Date'[Date]) >= _startdate && max('Date'[Date])<=_enddate

return
switch(
true(),
_period && _status = "Completed",1,
_period && _status = "In progress",2,
_period && _status = "Overdue",3,
_period && _status = "On Hold",4,
_period && _status = "Yet to start",5)

 

1 ACCEPTED SOLUTION

Hi ,

 

Please refer to the sample pbix:

Vlianlmsft_0-1647932230688.png

 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Belle2022 , Not very clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Also, refer my attempt to use Matrix as visual as project plan

Matrix as Project plan Visual: https://youtu.be/R25QoiyoSVs

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sure, attached link here is the sample pbi & the expected output. Lemme know if you have the solution. Thanks!

 

Sample PBI & Expected Output 

Hi ,

 

Please refer to the sample pbix:

Vlianlmsft_0-1647932230688.png

 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.