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
Anonymous
Not applicable

Cumlative Total not adding up correctly

Hi all,

 

I am trying to count the number of documents that have been created and completed in a given/selected day and look at it for each hour. I want to count the number of documents at each hour and it be a cumlative total.

 

CreatedCount = 
CALCULATE(
    COUNTA(IMSDocuments[Creation Date]) + 0,
    FILTER(ALL(IMSDocuments), IMSDocuments[CreationHour] <= MAX(IMSDocuments[CreationHour])),
    USERELATIONSHIP(Times[Time], IMSDocuments[CreationHour]),
    USERELATIONSHIP(Dates[Date], IMSDocuments[Creation Date])
)

Currently my DAX looks like this. I have the ... <= MAX(...) in the expression, but it still doesn't add up right. For 12th Feb 2018, created should total 120 and completed should total 93.

 

I have a scaled back version of my report which still has all the necessary relationships.

https://drive.google.com/file/d/1nryyr0IdUjjQTQi81v_G6RyS2d_DI-A2/view?usp=sharing

 

Can anyone see where I am going wrong?

 

Thanks in advance!!

 

1 ACCEPTED SOLUTION
Gopal30
Helper I
Helper I

Is this what you want ??

 

Answ3.PNG

View solution in original post

2 REPLIES 2
Gopal30
Helper I
Helper I

Is this what you want ??

 

Answ3.PNG

Anonymous
Not applicable

That's it! Amazing!

 

Thank you!

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.