Forum Discussion

MaironDominguez's avatar
MaironDominguez
Frequent Visitor
3 years ago
Solved

Help Making Calculated Columns and Gantt Chart

Good morning,   I would appreciate your assistance with the following: I have the columns Ticket ID, which identifies each ticket; Ranking, which indicates the order in which the tickets will be re...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi MaironDominguez,

    You can try to use following calculated column formulas if they suitable for your requirement:

    AR Days = 
    IF (
        Table1[Ticket Status] <> "Resolved",
        CALCULATE (
            SUM ( Table1[Estimated Resolving Days] ),
            FILTER (
                Table1,
                [ITStaff] = EARLIER ( Table1[ITStaff] )
                    && [Ranking] <= EARLIER ( Table1[Ranking] )
                    && [Ticket Status] <> "Resolved"
            )
        )
    )
    
    SDate = 
    VAR cum =
        CALCULATE (
            SUM ( Table1[Estimated Resolving Days] ),
            FILTER (
                Table1,
                [ITStaff] = EARLIER ( Table1[ITStaff] )
                    && [Ranking] < EARLIER ( Table1[Ranking] )
                    && [Ticket Status] <> "Resolved"
            )
        )
    RETURN
        IF ( Table1[Ticket Status] <> "Resolved", [Today] + cum )
    
    EDate = 
    IF (
        Table1[Ticket Status] <> "Resolved",
        [SDate] + [Estimated Resolving Days]
    )

    Notice: if you want these date dynamic changes based system date, you can replace the [Today] column to TODAY() function.

    Regards,
    Xiaoxin Sheng