Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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 thoug...
  • Anonymous's avatar
    Anonymous
    4 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