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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Running Total

I'm using PBI to report on the amount of tickets in our service desk.

 

I'd like a method to track the amount of open tickets over time.
For example, today we have 100 open tickets

Yesterday we had 120

Before the Christmas break we had 150.


I'd like to be able to record that running total somewhere, so I can show the amount of open tickets over time.  Is that possible?

 

Currently, I'm tracking it on a spreadsheet, but would like an automated method.

5 REPLIES 5
Anonymous
Not applicable

Hi @Nathaniel_C 
Sorry to chase, did you see my previous message about this?
Cheers

Rob

Hi Rob, @Anonymous 

At work, but will get back to you today.


Nathaniel





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

Proud to be a Super User!




Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,
Yes, it is possible.  You did not provide much info, but below is an example:

Running Total Measure = 
VAR varName = MAX('Table'[Name])
VAR varFruit = MAX('Table'[Fruit])
VAR varCurrentDate = MAX('Table'[Date])
VAR Result = 
    SUMX(
        FILTER(
            ALL('Table'),
            'Table'[Name] = varName
                && 'Table'[Fruit] = varFruit
                && 'Table'[Date] <= varCurrentDate
        ),
        'Table'[Quantity]
    )
RETURN
    Result

which will give you this:

Nathaniel_C_0-1672340369595.png


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





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

Proud to be a Super User!




Anonymous
Not applicable

Thanks @Nathaniel_C where do I set this up in PBI?

 

The one field I want to count is Ticket_NO, for each day

RobCrossAareonU_0-1672393886840.png

So, i'd want the table to look like this

 

DateTickets
29/12100
30/12110
31/12110
01/01120

 

 

What would the script for that look like? 

I'm using a database called UK_DW and a view called V_VM_AMS_TICKET_REPORT_PROD_UK

 

Thanks for your help.
Rob

Hi @Anonymous ,
You would write it as a measure and drop it on your table as a new column. So can you set up a table with the date and the number of tickets for that day?  If so, I can show you how to write the measure for the running total.

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





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

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors