Forum Discussion
Backlog between Open Date & Closed Date
- 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
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
Could you please tell me, how I can aggregate this up to be on a monthly level rather than daily?