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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.