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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I've created a gantt chart as per below screenshot:
I've two tabels: Project , Project Task. There is a one - many relationship between these two tables(Project[Name]----Project Task[Project]).
I need to display the count of Task in the tooltip of this gantt chart.
for eg: if Project[Name] = SP1 GOMBU, then the Task count = 6 ie. sum of Project Task[Task]
Project[Name] = GOMBU PW Template , then the Task count = 4
Project[Name] = DN Demo Template , then the Task count = 2
Not able to add a measure in the tooltip, so i created a calculated column, but it is not giving the correct count.
Solved! Go to Solution.
Hi @WinterGarden ,
Here is my sample data:
Use this DAX to create a calculated column:
Total Task Count =
CALCULATE(
COUNTROWS('Project Task'),
ALL('Project Task'),
'Project Task'[Project] = EARLIER('Project Task'[Project])
)
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @WinterGarden ,
Here is my sample data:
Use this DAX to create a calculated column:
Total Task Count =
CALCULATE(
COUNTROWS('Project Task'),
ALL('Project Task'),
'Project Task'[Project] = EARLIER('Project Task'[Project])
)
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
Thank you so much 😊