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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
amaoa
Helper II
Helper II

How to show Late task, Overdue task & ontrack task count in Power BI with Visuals

Hello All,

I am new to power bi and geting data from Project Online. Could you suggest ways I can show the COUNT of late task, overdue task and ontrack task from the data below? Any visuals that have been used by others that is recommended?If I can get the right expression for all three, I can write an IF statement for the status column. Pls can you verify my expressions below?

 

Ontrack Task = IF(AND(StartDate>TODAY(),FinishDate>TODAY(),1,0)

Late task = IF(Finish Date<TODAY(),1,0)

Overdue Task = ???

 

Task NameStart DateFinish DateActual Start DateActual Finish Date% CompStatus
Task 11/29/211/29/21  0 
Task 26/10/206/10/206/10/20 5 
Task 33/8/213/12/21  0 
Task 43/15/213/26/21  0 
Task 51/1/201/1/20  0 
Task 65/28/206/24/205/28/20 10 
Task 76/25/208/19/20  0 
Task 81/1/201/1/20  0 
Task 95/28/205/28/205/28/20 30 

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @amaoa ,

 

You may create measure like DAX below.

 

Overdue Task =
CALCULATE (
    SUMX (
        Table1,
        IF (
            MAX ( [Finish Date] ) < TODAY ()
                && MAX ( [% Comp] ) <> 100
                && ( MAX ( [Finish Date] ) <> BLANK () ),
            1,
            0
        )
    )
)

 

If I misunderstood it, you may clarify which situation will be marked as "Overdue Task" , "Ontrack Task" and  "Late task" based on your data table. See the similar case: Counts in a period of time.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi @amaoa ,

 

You may create measure like DAX below.

 

Overdue Task =
CALCULATE (
    SUMX (
        Table1,
        IF (
            MAX ( [Finish Date] ) < TODAY ()
                && MAX ( [% Comp] ) <> 100
                && ( MAX ( [Finish Date] ) <> BLANK () ),
            1,
            0
        )
    )
)

 

If I misunderstood it, you may clarify which situation will be marked as "Overdue Task" , "Ontrack Task" and  "Late task" based on your data table. See the similar case: Counts in a period of time.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@amaoa , refer if this can help

https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-gantt-chart/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
az38
Community Champion
Community Champion

Hi @amaoa 

try X functions like

Ontrack Task Number Measure = 
CALCULATE(SUMX(Table, IF(AND(StartDate>TODAY(),FinishDate>TODAY(),1,0)))

Late task Number Measure = 
CALCULATE(SUMX(Table, IF(Finish Date<TODAY(),1,0)))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks Super User II. Any suggestions for overdue task?

Anybody knows how to derive/calculate overdue task? Any help will be greatly appreciated

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.