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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculate Task Backlog

Hi,
This might be a simple one but I am stuck in this.


I have a Power BI table with Ticket IDs, Created Date, completed date, Ticket Status
The ticket which are closed, have a completed date and which are in backlog has 1st, December, 3799 mentioned.
The tickets also have "Status Column" - Cancelled, Completed, On-Hold, Backlog.
I have already summarized the counts in power BI as attached in the Image

Summary Table name is "Ticket Summary".
I do not have any Dates / Calender Auto table but can create one if needed.
What I want to achieve now is calculate the Backlog as highlighted in the Image
I can only use DAX functions as the data is on another tenant whose credentials I don't have.
All the help will be appreciated.

Regards!!
DataData

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below to get it, please find the details in the attachment.

 

Column = 
VAR _submit =
    CALCULATE (
        SUM ( 'Table'[Submitted] ),
        FILTER ( 'Table', 'Table'[Month_Year] <= EARLIER ( 'Table'[Month_Year] ) )
    )
VAR _clear =
    CALCULATE (
        SUM ( 'Table'[Total_Cleared] ),
        FILTER ( 'Table', 'Table'[Month_Year] <= EARLIER ( 'Table'[Month_Year] ) )
    )
RETURN
    _submit - _clear

 

yingyinr_0-1674716617807.png

If the above one can't help you, could you please provide more raw data in your table (exclude sensitive data) with Text format, your column chart field settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

I had solved it using Index column and "Earlier" Function but could not post the solution on time due to work.

What I did was to create index column using 

Index = RANKX( ALL(Table_Name), Table_Name[Month_Year], , ASC, Dense)

Then calculated the backlog for individual month - i.e. MonthlyBacklog = Total_Cleared - Submitted

Then created column :

Cumulative Backlog=
SUMX(FILTER(Table_Name,Table_Name[Index]<=EARLIER(Table_Name[Index])),Table_Name[MonthlyBacklog])


But your solution works better as there won't be a need to create additional column "MonthlyBacklog" as I did. 
PS: Apologies for not posting the question in a better way as this was my first quesiton on the community.
Thanks a lot!

Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below to get it, please find the details in the attachment.

 

Column = 
VAR _submit =
    CALCULATE (
        SUM ( 'Table'[Submitted] ),
        FILTER ( 'Table', 'Table'[Month_Year] <= EARLIER ( 'Table'[Month_Year] ) )
    )
VAR _clear =
    CALCULATE (
        SUM ( 'Table'[Total_Cleared] ),
        FILTER ( 'Table', 'Table'[Month_Year] <= EARLIER ( 'Table'[Month_Year] ) )
    )
RETURN
    _submit - _clear

 

yingyinr_0-1674716617807.png

If the above one can't help you, could you please provide more raw data in your table (exclude sensitive data) with Text format, your column chart field settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.