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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Pavlous
Advocate II
Advocate II

Percentual overview depending on partials of days

Hey,

I've ran into a problem when i was triing to make an overview of percentual completion of tasks per each day. I have matrix which should show me how many of tasks where completed "on time" (dependant on due date).  I want only to compare the completed ones (on the date when they were completed) and shows how many of them where completed on time and how many were not completed on time. e.g. 86.7% On time. I am also interested only on category "A". And by default due to other columns is the table set to be connected wíth ref_date by end time. I've tried to use USERELEATIONSHIP to connect due date to date but it still not showing the correct numbers, as far as I know that some days it should be 100% and its not showing them. I dont know what I am missing...

Tried by this formula, but I propably need to make another table...

Note.: This formula reffers to Archive table (where data is stored after archivation) and live table. Also the span is set due to some tolerances, but they are not so important. The result(total) is table of all unprocessed tasks from received date until end date. (Also tried with the original ones - End Time and Due Date)

Processed on time1 =
CALCULATE (
    IF (
        SUM ( 'CAS Tasks'[Cycle time] ) <= 3,
        SUM ( 'CAS Tasks'[Processed_] )
            / CALCULATE (
                SUM ( 'CAS Tasks'[To process] ),
                FILTER ( 'CAS Tasks', SUM ( 'CAS Tasks'[Cycle time] ) >= 3 )
            ),1-
        SUM ( 'CAS Tasks'[Processed_] )
            / CALCULATE (
                SUM ( 'CAS Tasks'[To process] ),
                FILTER ( 'CAS Tasks', SUM ( 'CAS Tasks'[Cycle time] ) >= 3 )
            )
    ),
    FILTER ( 'CAS Tasks', 'CAS Tasks'[Category] = "Agreements" ),
    USERELATIONSHIP ( 'CAS Tasks'[Due Date], Ref_date[Date] )
)
    + CALCULATE (
        IF (
            SUM ( Archive[Cycle time] ) <= 3,
            (
                    SUM ( Archive[Processed_] )
                        / CALCULATE (
                            SUM ( Result[Total] ),
                            FILTER ( Archive, SUM ( Archive[Cycle time] ) >= 3 )
                        )
                ),
   1-
                     (
                    SUM ( Archive[Processed_] )
                        / CALCULATE (
                            SUM ( Result[Total] ),
                            FILTER ( Archive, SUM ( Archive[Cycle time] ) >= 3 )
                        )
                )
        ),
        FILTER ( Archive, Archive[Categories] = "Agreements" ),
        USERELATIONSHIP ( Archive[Due Date], Ref_date[Date] )
    )

 

Received Date

Due DateEnd TimeCategoriesTo process
09/08/201710/08/201711/08/2017C3
09/08/201710/08/201711/08/2017C1
09/08/201710/08/201711/08/2017C1
09/08/201710/08/201711/08/2017C1
09/08/201710/08/201711/08/2017C1
09/08/201710/08/201711/08/2017C1
09/08/201710/08/201713/08/2017C1
09/08/201710/08/201713/08/2017C1
09/08/201710/08/201713/08/2017C1
09/08/201710/08/201709/08/2017A21
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A11
09/08/201710/08/201710/08/2017A25
09/08/201710/08/201710/08/2017A25
09/08/201710/08/201710/08/2017A25
09/08/201710/08/201710/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201710/08/201711/08/2017A25
09/08/201713/08/201711/08/2017A25
09/08/201714/08/201712/08/2017A25
09/08/201715/08/201712/08/2017A25
09/08/201716/08/201712/08/2017A25
09/08/201717/08/201712/08/2017A25
09/08/201718/08/201712/08/2017A3
09/08/201719/08/201712/08/2017A25
09/08/201720/08/201712/08/2017A25
09/08/201721/08/201712/08/2017A25
09/08/201713/08/201712/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A12
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A2
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017A25
09/08/201714/08/201714/08/2017B

4

 

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Pavlous,

 

What is [Cycle time] column? I can see it in your formula, but not in the shared sample data. 

 

And what's your expected result against the shared sample data? Could you be more precisely with it? Smiley Happy

 

Regards

Hi @v-ljerr-msft,

Cycle time column is only datediff between due date and end time. As I mentioned its not critical for this issue.

 

I would need to show percentual overwiev of tasks done in time per day. If i have done 100 tasks with due date on today and another 20 with same due date i have not done it should be 83.3% tasks done in time. In this simple case its easy.

 

Imagine another situation. I receive 200 tasks on 1/1/2017 with due date on 21/1/2017. I will process 20 on 1/1/2017 another 20 3/1/2017 and 100 on 21/1/2017. I would like to show that i have completed those 140 tasks from 200 only by the due date. So at line with date 21/1/2017 I would have 70% completed in time.

 

Are those informations sufficient?

Pavlous
Advocate II
Advocate II

Corrected table

Received Date

Due DateEnd TimeCategoriesTo processProcessed
09/08/201710/08/201711/08/2017C33
09/08/201710/08/201711/08/2017C11
09/08/201710/08/201711/08/2017C11
09/08/201710/08/201711/08/2017C11
09/08/201710/08/201711/08/2017C11
09/08/201710/08/201711/08/2017C11
09/08/201710/08/201713/08/2017C11
09/08/201710/08/201713/08/2017C11
09/08/201710/08/201713/08/2017C11
09/08/201710/08/201709/08/2017A2121
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A1111
09/08/201710/08/201710/08/2017A2525
09/08/201710/08/201710/08/2017A2525
09/08/201710/08/201710/08/2017A2525
09/08/201710/08/201710/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201710/08/201711/08/2017A2525
09/08/201713/08/201711/08/2017A2525
09/08/201714/08/201712/08/2017A2525
09/08/201715/08/201712/08/2017A2525
09/08/201716/08/201712/08/2017A2525
09/08/201717/08/201712/08/2017A2525
09/08/201718/08/201712/08/2017A33
09/08/201719/08/201712/08/2017A2525
09/08/201720/08/201712/08/2017A2525
09/08/201721/08/201712/08/2017A2525
09/08/201713/08/201712/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A1212
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A22
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017A2525
09/08/201714/08/201714/08/2017B44

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors