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
TomLU123
Helper III
Helper III

Calculate the Average Completion Rate by using the last value of each row

Dear Experts,

 

I have a data set like this. This data set is to capture the completion rate of each task on specific days. 

SS Dataset.png

I wish to calculate the Overvall Completion Rate by using the last percentage of each task. 

In the example above, Overvall Completion Rate = (50%+40%+30%)/3

 

Is there any expression to create a quick measure to achieve that?

Many thanks!

 

Best regards,

Tom

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @TomLU123

 

Try this approach

 

First unpivot your date columns from Query Editor...You will get

 

unpivot.png

 

Now you can use this MEASURE

 

[Measure ] =
AVERAGEX (
    VALUES ( Table1[Task] ),
    VAR lastnonblankdate =
        CALCULATE ( MAX ( Table1[Date] ), Table1[Value] <> BLANK () )
    RETURN
        CALCULATE ( SUM ( Table1[Value] ), Table1[Date] = lastnonblankdate )
)

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

Hi @TomLU123

 

Try this approach

 

First unpivot your date columns from Query Editor...You will get

 

unpivot.png

 

Now you can use this MEASURE

 

[Measure ] =
AVERAGEX (
    VALUES ( Table1[Task] ),
    VAR lastnonblankdate =
        CALCULATE ( MAX ( Table1[Date] ), Table1[Value] <> BLANK () )
    RETURN
        CALCULATE ( SUM ( Table1[Value] ), Table1[Date] = lastnonblankdate )
)

Hi Zubair, it works! Thank you so much for the help!

@Zubair_Muhammad

 

Hi Zubair,

 

Just a further check, I have a data set like this. This data set is to capture the completion rate of each task on specific days. But there are empty values since the user havn't update the progress. 

Task DateValue
Task 11-Jun-1830%
Task 11-Jul-1840%
Task 11-Aug-18 
Task 21-Jun-1840%
Task 21-Jul-18 
Task 21-Aug-18 
Task 31-Jun-18 
Task 31-Jul-18 
Task 31-Aug-18 

 

I wish to calculate the Overvall Completion Rate by using the last percentage of each task (including the empty one).

In the example above, Overvall Completion Rate = (40%+40%)/3

 

Is there any expression to create a quick measure to achieve that?

Many thanks!

 

Best regards,

Tom

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