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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
marvari
Regular 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
v-eqin-msft
Community Support
Community Support

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
Super User
Super User

@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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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