March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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!
Solved! Go to Solution.
Hi @BVick_5 ,
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
Hi @BVick_5 ,
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
Could you please tell me, how I can aggregate this up to be on a monthly level rather than daily?
Thank you very much
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 |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
21 | |
16 | |
14 |