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
ruyaselman
Helper I
Helper I

Could not calculate Average Progress of the Latest Date in Document

Dear All,

 

I`m trying to calculate the performance for the latest week (latest entries in my Document).

If you add a manual filter it works in Dashboard, however you have to repeat this every week to capture the latest updates. And it`s not an automated solution.

 

So I need to create a measure..

 

I calculated the last day in the Document. And when I want to calculate the AVG Progress and Filter this Date it didnt work.

 

Latest Date(week) in File -> 23 July 

AVG Task Progress -> 13,75

AVG Task Progress for the latest week(23 July) should be -> 27 ... But I calculated as 13,75

 

Kindly help..

 

DataSource.JPG

MainScreen.JPGLatest date formulaLatest date formulaAverage progress calculation for latest dateAverage progress calculation for latest date

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @ruyaselman ,

 

To create a date table like this and create relationship between tables.

 

CALENDAR = CALENDARAUTO()

After that, update your formula to have a try.

 

Progress= CALCULATE(AVERAGE(Sheet1[Task Progress]),LASTDATE(CALENDAR[Date]))


If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @ruyaselman ,

 

To create a date table like this and create relationship between tables.

 

CALENDAR = CALENDARAUTO()

After that, update your formula to have a try.

 

Progress= CALCULATE(AVERAGE(Sheet1[Task Progress]),LASTDATE(CALENDAR[Date]))


If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
ruyaselman
Helper I
Helper I

Hi,

 

I believe I sorted out with the following measure. Just want to share with users who has similar issues;

 
Progress= CALCULATE(AVERAGE(Sheet1[Task Progress]),LASTDATE(Sheet1[Date]))
 
Thanks

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.