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
bishnu
Helper II
Helper II

Running total is continuing until end of year

Hello,

I am tying to create running total for a status "open", though i managed to do it, its continuing till end of the year 2020  though i have datas untill may-2020. 

I used measure to count the monthly total (open) and using monthly total, i calculated the running total (another measure - "running total")

 

Annotation 2020-05-29 093846.pngAnnotation 2020-05-29 093745.png

 

I am unbale to figure out why. Helps highly apppretiated

 

Thanks in advance

BB

6 REPLIES 6
mahoneypat
Employee
Employee

Please try this expression.  For me, the line chart ended where it should.  I called my table Status instead.

 

Running Total =
CALCULATE (
[Open Count],
FILTER ( ALLSELECTED ( 'Status' ), 'Status'[Date] <= MAX ( 'Status'[Date] ) )
)

 

Also, I encourage you to turn off Auto Date Hierarchy in your model, to simplify your DAX expressions.  The use of a separate Date table is also recommended for any model with date columns.

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hello, 

Still it dosent work. it shows me data untill november 2020 wheras as i have data untill may 2020 (graph on the left which is just montly total terminates at may 2020.

I didnt quite understand why i should remove data Hierarchy

Annotation 2020-06-02 114235.png

 

Many thanks

BB

v-eachen-msft
Community Support
Community Support

Hi @bishnu ,

 

You could create a measure to judge the sum of "open" for each year. 

Measure =
IF([Open]>0,1,0)

Then add it in the filter pane to show result = 1.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hello,

I tried but it dosent work

 

Regards

BB

camargos88
Community Champion
Community Champion

Hi @bishnu ,

 

Try creating a dim table till the end of 2020 and use this field for running total and charts.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Hello, 

But i dont have data till end of the yeaar. Just have data till may

 

Thanks

BB

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.

Top Solution Authors