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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors