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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bryn987
Helper I
Helper I

Dax to find running total of open cases?

Hoping someone can point me to a good resource that I could use to create the following report.

 

I'm tyring to build a report so I can see daily, the number of open cases I have.  For example:

On Monday, I had 1,000 cases that were Open, New, Waiting on Info and Work in Progress.

On Tuesday, 100 of those cases turned to Resolved or Closed but we gained 500 New cases.

On Wednesday, 300 cases turned to Resolved or Closed but we gained 50 New cases.

 

I would like to be able to show a report that has the data like this:

Monday - 1,000 open cases

Tuesday - 1,400 open cases

Wednesday - 1,150 open cases

 

This will allow me to trend on our open cases, whether the number is getting higher or lower.  I do have a calendar table and my data fields are:

  • Created
  • Resovled
  • Assigned On
  • State

 

Any help would be appreciated!  Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bryn987 ,

 

My idea is to create an unconnected calendar table as the x-axis and then create a measure like this one.

 

running total of open cases = 
VAR _date = SELECTEDVALUE('Calendar'[Date])
VAR _created = CALCULATE(COUNTROWS('Table'),'Table'[Created]<=_date)
VAR _resovled = CALCULATE(COUNTROWS('Table'),'Table'[Resovled]<=_date&&'Table'[Resovled]<>BLANK())
VAR _result = _created - _resovled
RETURN
_result

 

Then create a line chart using the 'calendar' [date] as the X-axis and the measure as the Y-axis. Please refer to the sample file.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @bryn987 ,

 

My idea is to create an unconnected calendar table as the x-axis and then create a measure like this one.

 

running total of open cases = 
VAR _date = SELECTEDVALUE('Calendar'[Date])
VAR _created = CALCULATE(COUNTROWS('Table'),'Table'[Created]<=_date)
VAR _resovled = CALCULATE(COUNTROWS('Table'),'Table'[Resovled]<=_date&&'Table'[Resovled]<>BLANK())
VAR _result = _created - _resovled
RETURN
_result

 

Then create a line chart using the 'calendar' [date] as the X-axis and the measure as the Y-axis. Please refer to the sample file.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

That worked fantastic and was quite simple.  Thank you for assisting me!

vicky_
Super User
Super User

Power BI has a built in Waterfall Chart that could meet your requirements of visualising the running totals. I imagine that the "category" would have a date, the breakdown would be the state and the y-axis is the count of cases.

 

More info here: https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-waterfall-charts?tabs=powe...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors