Forum Discussion

Thrasso00's avatar
Thrasso00
Frequent Visitor
3 years ago

How to Dynamically Track Issue Status in Power BI

Hi everyone,

I'm looking for help on how to add a custom "Status" column to an issue tracking table in Power BI. The "Status" column should track the current status of each issue based on its timeline of "IssueActions", with possible values of "Actif" or "Closed". I'm trying to use DAX but my knowledge is limited. Can anyone provide guidance on how to achieve this? Any help would be greatly appreciated.

ZoneIssueIssueActionDateOfIssueActionDesiredColumn(Status)
110Reopened23-04-23Actif
110Closed20-02-23Closed
110Edited15-01-23Actif
110Open14-01-23Actif
111Open19-02-23Actif
212Edited25-05-22Actif
212Edited19-04-22Actif
212Reopened17-04-22Actif
212Closed15-04-22Closed
212Edited14-03-22Actif
212Open13-03-22Actif
213Closed14-04-22Closed
213Open18-02-22Actif
314Closed17-03-22Closed
314Open13-01-22Actif
315Edited15-05-21Actif
315Edited24-03-21Actif
315Open22-01-21Actif


Best regards,

6 Replies

  • hi Thrasso00

    Not sure i fully got you. try to add a calculated column like:
    Column =
    IF(
    [IssueAction]="Closed",
    "Closed",
    "Actif"
    )

    • Thrasso00's avatar
      Thrasso00
      Frequent Visitor

      HI FreemanZ thank you for answering,

      What I want to do is group by issue number and assign a status of 'Active' or 'Closed' based on the chronological order of the IssueActions.

      If we analyze issue number 12, you will see that it is 'Active' when the IssueAction remains 'Open' until an IssueAction = Closed is performed. From that moment on, it will be in the 'Closed' status until there is an IssueAction = Reopen. At that point, it would change back to 'Active'.

      • FreemanZ's avatar
        FreemanZ
        Super User

        hi Thrasso00 

        do you have a different request from the original post? could you post your request as a data table?