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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
marvari
Frequent Visitor

I have a problem with the running total for open vs. Total tasks by month.

Hi everyone.

I am learning to work in power BI. And I ran into a problem.

I have a task table.I know the number of open tasks, closed tasks and the total number of tasks.
I summarize them by month.
I calculated the ratio of open tasks to the total number of tasks by month.
But when I want to calculate the running total of open tasks to the total number of tasks, I see incorrect numbers, it seems the division breaks.

 

marvari_1-1659184469988.png

 

Total Task_CC = SUM(Task[Total Task])

Com Total Task = CALCULATE(Task[Total Task_CC],FILTER(ALL('Calendar'), 'Calendar'[Date] <= MAX('Calendar'[Date])))
 
Sum of Total Completed Task = SUM( Task[Total Completed Task])
 
Sum of Open Task = SUM(Task[Open Task])
 
Open vs. Total_CC = DIVIDE(Task[Sum of Open Task], Task[Total Task_CC])

Com Open vs. Total = CALCULATE([Open vs. Total_CC], FILTER(All('Calendar'), 'Calendar'[Date]<= MAX('Calendar'[Date])))

 

I can't find a solution. I would be grateful for any help.

Thanks community

3 REPLIES 3
Anonymous
Not applicable

Hi  @marvari ,

 

If you want to get the running total of Open vs. Total_CC, please try:

Com Open vs. Total = SUMX(FILTER(ALL('Calendar'),'Calendar'[Date]<=MAX('Calendar'[Date]) ),[Open vs. Total_CC])

Eyelyn9_0-1659505139102.pngBest Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

Share some dat to work with and show your expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

@marvari I believe you will need a Com Open Task measure that uses the same basic CALCULATE statement as in your Com Total Task measure, otherwise you are only getting the open tasks for the month and comparing it to all tasks.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors