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
Sk1X1
Frequent Visitor

Calculate value for every end of month for last 12 months

Hello guys, 

I would like to calculate value for every end of month for last 12 months.

I have tasks and every task have Created date and Finished date (task can be not finished yet). It looks like this:

data.png

 

For one month, for example for Januar I can use this formula (it's simplified for now):

=DAYS(IF(FINISHED > EOMONTH(31.01.2018;0);31.01.2018;FINISHED);CREATED)

But I would like to do this for every month past last 12 months. Is here some way to calculate these values?

 

Here is simulation in my excel for January and Febuary:

complete.png

 

At the end I would like to create AVG for every month, but that's not the main problem right now.

Thanks for every reply.

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Sk1X1,

 

You may add a month table, drag month to Columns of a Matrix visual, then use a measure to calculate the value and drag it to Values.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for reply. I was able to add Month table, but I still not sure how to write measure to calculate duration time for every month.

@Sk1X1,

 

You may use MAX Function to get the corresponding values of rows and columns.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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