Forum Discussion
Backlog between Open Date & Closed Date
Hi all,
First off, I am brand new to Power BI (2 weeks), and I appreciate your patience and guidance.
I have looked through some of the other posts here and I don't see my situation, so I thought I would post it and see where it goes.
Essentially, I have a data set below, that includes a Start Date and Closed Date. I want to calculate a rolling backlog every month until the Closed Date (Month).
For example:
December - 9
January - 5 (4 were closed in January)
February - 3
March - 3
April - 2
| Start Date | Closed Date |
| 12/21/2021 | 4/25/2022 |
| 12/17/2021 | 2/15/2022 |
| 12/17/2021 | 1/24/2022 |
| 12/17/2021 | 1/19/2022 |
| 12/16/2021 | |
| 12/15/2021 | 6/1/2022 |
| 12/13/2021 | 2/10/2022 |
| 12/13/2021 | 1/12/2022 |
| 12/10/2021 | 1/21/2022 |
Any help would be appreciated.
Thank you for your time!
- Anonymous4 years ago
Hi Anonymous ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create a measure as below assume that there is a date dimension table in the model:
Backlog = VAR _curdate = SELECTEDVALUE ( 'Date'[Date] ) RETURN CALCULATE ( DISTINCTCOUNT ( 'Table'[Ticket Number] ), FILTER ( 'Table', 'Table'[Start Date] <= _curdate && ( 'Table'[Closed Date] > _curdate || ISBLANK ( 'Table'[Closed Date] ) ) ) )In addition, you can refer the following links to get it.
Getting a running total of current open Tickets
CountOfOpenTicketsParamMeasure =
IF ( MAX ( 'Date'[Date]) <= MAX(Ticket[Opened] ),
COUNTROWS (
FILTER (
Ticket,
Ticket[Opened] <= MAX('Date'[Date]) &&
( Ticket[Closed] > MAX('Date'[Date]) || ISBLANK( Ticket[Closed] ))
)
)
)Backlog- count a ticket in each month it is not solved
If the above one can't help you get the desired result, please provide more sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. 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
4 Replies
- AnonymousNot applicable
Hi Anonymous ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create a measure as below assume that there is a date dimension table in the model:
Backlog = VAR _curdate = SELECTEDVALUE ( 'Date'[Date] ) RETURN CALCULATE ( DISTINCTCOUNT ( 'Table'[Ticket Number] ), FILTER ( 'Table', 'Table'[Start Date] <= _curdate && ( 'Table'[Closed Date] > _curdate || ISBLANK ( 'Table'[Closed Date] ) ) ) )In addition, you can refer the following links to get it.
Getting a running total of current open Tickets
CountOfOpenTicketsParamMeasure =
IF ( MAX ( 'Date'[Date]) <= MAX(Ticket[Opened] ),
COUNTROWS (
FILTER (
Ticket,
Ticket[Opened] <= MAX('Date'[Date]) &&
( Ticket[Closed] > MAX('Date'[Date]) || ISBLANK( Ticket[Closed] ))
)
)
)Backlog- count a ticket in each month it is not solved
If the above one can't help you get the desired result, please provide more sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. 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
- AnonymousNot applicable
Thank you very much
- StoryofData
Helper III
Could you please tell me, how I can aggregate this up to be on a monthly level rather than daily?
- AnonymousNot applicable
Ticket Number Start Date Prioritized Date Closed Date CDEX-96436 12/21/2021 1/7/2022 4/25/2022 CDEX-95876 12/17/2021 12/28/2021 2/15/2022 CDEX-95867 12/17/2021 1/24/2022 CDEX-95821 12/17/2021 1/19/2022 CDEX-95614 12/16/2021 12/17/2021 CDEX-95240 12/15/2021 12/17/2021 6/1/2022 CDEX-94685 12/13/2021 12/13/2021 2/10/2022 CDEX-94681 12/13/2021 1/12/2022 CDEX-94205 12/10/2021 12/13/2021 1/21/2022