Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
MaironDominguez
Frequent Visitor

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 resolved; IT Staff, who is the person responsible for resolving the ticket; Ticket Status, which represents the current status of the ticket; and Estimated Resolving Days, which denotes the number of days the IT Staff anticipates it will take to resolve the ticket.

MaironDominguez_0-1691766358819.png

With this information, I require help with creating three calculated columns. For these calculations, we will need to utilize a variable named "Today()".

I need a column that accumulatively sums the Estimated Resolving Days column only if the Ticket Status is "Assigned" and this calculation varies for each IT Staff.

The other columns are somewhat simpler:

The Start Date column should be set to "Today()" when the Ticket Ranking is the lowest within that particular IT Staff group. Otherwise, the Start Date should be calculated as "Today()" plus the Estimated Resolving Days of the ticket with the previous Ranking.

Finally, there's the End Date column, which should be the result of adding the Start Date and the Estimated Resolving Days.

 

I need assistance to create the columns "Acumulated Resolving Days," "Start Date," and "End Date" in order to replicate the process in Power BI, as depicted in the Excel file.

This is the way i want it to look like in Power BI;

MaironDominguez_1-1691766437390.png

 

I attach the Excel file and the PBI file. If more information is needed, please don't hesitate to request it.

Excel File 

PBI File 

 

Ticket ID-Ranking-ITStaff-Ticket Status-Estimated Resolving Days-Acumulated Resolving Days-Today-Start Date-End Date

1100BernieResolved1 08/11/23  
1111BernieAssigned2208/11/2308/11/2308/13/23
1122BernieAssigned3508/11/2308/13/2308/16/23
1133BernieAssigned4908/11/2308/16/2308/20/23
1144BernieResolved5 08/11/23  
1155BernieAssigned61508/11/2308/20/2308/26/23
1160JoshAssigned2208/11/2308/11/2308/13/23
1171JoshAssigned4608/11/2308/13/2308/17/23
1182JoshAssigned61208/11/2308/17/2308/23/23
1193JoshAssigned82008/11/2308/23/2308/31/23
1204JoshAssigned103008/11/2308/31/2309/10/23
1215JoshAssigned124208/11/2309/10/2309/22/23
1220LeoResolved3 08/11/23  
1231LeoResolved6 08/11/23  
1242LeoResolved9 08/11/23  
1253LeoAssigned121208/11/2308/11/2308/23/23
1264LeoAssigned152708/11/2308/23/2309/07/23
1275LeoAssigned184508/11/2309/07/2309/25/23
1280MaxAssigned1.51.508/11/2308/11/2308/12/23
1291MaxAssigned34.508/11/2308/12/2308/15/23
1302MaxAssigned4.5908/11/2308/15/2308/20/23
1313MaxAssigned61508/11/2308/20/2308/26/23
1324MaxAssigned7.522.508/11/2308/26/2309/02/23
1335MaxAssigned931.508/11/2309/02/2309/11/23
1340PeterResolved2.5 08/11/23  
1351PeterResolved5 08/11/23  
1362PeterResolved7.5 08/11/23  
1373PeterResolved10 08/11/23  
1384PeterAssigned12.512.508/11/2308/11/2308/23/23
1395PeterAssigned1527.508/11/2308/23/2309/07/23
1 ACCEPTED SOLUTION
Anonymous
Not applicable

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]
)

1.png

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

Regards,
Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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]
)

1.png

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

Regards,
Xiaoxin Sheng

Wonderful, it works perfectly, thank you very much!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.