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
sprao
Helper I
Helper I

Cumulative Count by Month from another table value

Hi Members, please help me below scenario

I have 3 tables like below image

Question -mAIN.PNG

Now in my graph I want show No.of task by month with cumulative value

Question1.PNG

Please help me..Advance Thank you.. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@sprao 
Try the following measures, I put in the table visual to show you the result because, I don't have your calender table. You can try yourself.

 

Plan  = CALCULATE(COUNTROWS('Plan Table'),
        FILTER(ALL('Plan Table'),SUMX(FILTER('Plan Table',EARLIER('Plan Table'[Taskfinishdate].[Year])<='Plan Table'[Taskfinishdate].[Year]),COUNTROWS('Plan Table'))),
        FILTER(ALL('Plan Table'),SUMX(FILTER('Plan Table',EARLIER('Plan Table'[Taskfinishdate].[MonthNo])<='Plan Table'[Taskfinishdate].[MonthNo]|| EARLIER('Plan Table'[Taskfinishdate])<='Plan Table'[Taskfinishdate]),COUNTROWS('Plan Table'))),
        FILTER(ALL('Plan Table'),'Plan Table'[Taskfinishdate]>=RELATED(Datetable[Startdate]) && 'Plan Table'[Taskfinishdate]<=RELATED(Datetable[Enddate])))

 

 

Baseline = CALCULATE(COUNTROWS('Baseline Table'),
        FILTER(ALL('Baseline Table'),SUMX(FILTER('Baseline Table',EARLIER('Baseline Table'[Baseline_Date].[Year])<='Baseline Table'[Baseline_Date].[Year]),COUNTROWS('Plan Table'))),
        FILTER(ALL('Baseline Table'),SUMX(FILTER('Baseline Table',EARLIER('Baseline Table'[Baseline_Date].[MonthNo])<='Baseline Table'[Baseline_Date].[MonthNo] || EARLIER('Baseline Table'[Baseline_Date])<='Baseline Table'[Baseline_Date]),COUNTROWS('Baseline Table'))),
        FILTER(ALL('Baseline Table'),'Baseline Table'[Baseline_Date]>=RELATED(Datetable[Startdate]) && 'Baseline Table'[Baseline_Date]<=RELATED(Datetable[Enddate])))

 

baseline&plan.JPG

Paul Zheng
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

5 REPLIES 5
Anonymous
Not applicable

@sprao 
Try the following measures, I put in the table visual to show you the result because, I don't have your calender table. You can try yourself.

 

Plan  = CALCULATE(COUNTROWS('Plan Table'),
        FILTER(ALL('Plan Table'),SUMX(FILTER('Plan Table',EARLIER('Plan Table'[Taskfinishdate].[Year])<='Plan Table'[Taskfinishdate].[Year]),COUNTROWS('Plan Table'))),
        FILTER(ALL('Plan Table'),SUMX(FILTER('Plan Table',EARLIER('Plan Table'[Taskfinishdate].[MonthNo])<='Plan Table'[Taskfinishdate].[MonthNo]|| EARLIER('Plan Table'[Taskfinishdate])<='Plan Table'[Taskfinishdate]),COUNTROWS('Plan Table'))),
        FILTER(ALL('Plan Table'),'Plan Table'[Taskfinishdate]>=RELATED(Datetable[Startdate]) && 'Plan Table'[Taskfinishdate]<=RELATED(Datetable[Enddate])))

 

 

Baseline = CALCULATE(COUNTROWS('Baseline Table'),
        FILTER(ALL('Baseline Table'),SUMX(FILTER('Baseline Table',EARLIER('Baseline Table'[Baseline_Date].[Year])<='Baseline Table'[Baseline_Date].[Year]),COUNTROWS('Plan Table'))),
        FILTER(ALL('Baseline Table'),SUMX(FILTER('Baseline Table',EARLIER('Baseline Table'[Baseline_Date].[MonthNo])<='Baseline Table'[Baseline_Date].[MonthNo] || EARLIER('Baseline Table'[Baseline_Date])<='Baseline Table'[Baseline_Date]),COUNTROWS('Baseline Table'))),
        FILTER(ALL('Baseline Table'),'Baseline Table'[Baseline_Date]>=RELATED(Datetable[Startdate]) && 'Baseline Table'[Baseline_Date]<=RELATED(Datetable[Enddate])))

 

baseline&plan.JPG

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

amitchandak
Super User
Super User

You need open task or cumulative task. The open task is based on the end date. And we need the task start date. Also Task ID

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

I need cumulative No.of tasks(Plan & Baseline),during the projects period..

@sprao , can you explain with example how to get with these three tables

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

@amitchandak , Currently i am developing Project management dashboard,so from sharepoint i extracted Project api data along with tasks api data & but  taskbaseline data from sharepoint list..so ihave total three tables..

Question3.PNG

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