cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ckoulis
New Member

How can i get the average per month in a table

Hello all,

 

i have the data below: 

 

IDDate CreatedDate ResolvedDays difference
110/9/202010/10/20201
210/10/202010/12/20202
311/10/202011/11/20201
411/11/202011/13/20202
511/12/202011/15/20203
612/10/202012/14/20204
712/12/202012/13/20201

 

and i would like to get the average per month like below

 

Average per month
Oct-201.50
Nov-202.00
Dec-202.50

 

any suggestions of what needs to be done?

 

thank you in advance.

1 ACCEPTED SOLUTION
nandukrishnavs
Community Champion
Community Champion

@ckoulis 

 

First, create a calculated column.

month year = FORMAT('Table'[Date Created],"mmm-YY")

Then write a Measure.

Measure = AVERAGE('Table'[Days difference])

nandukrishnavs_1-1608010964889.png

 

 

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@ckoulis , Create a date table. Join it with date created and have month year in there and then take Avergae measure.

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

or refer if this blog can help

#POWERBI: How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

great information here @amitchandak thank you

nandukrishnavs
Community Champion
Community Champion

@ckoulis 

 

First, create a calculated column.

month year = FORMAT('Table'[Date Created],"mmm-YY")

Then write a Measure.

Measure = AVERAGE('Table'[Days difference])

nandukrishnavs_1-1608010964889.png

 

 

 

View solution in original post

Thank you that worked.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!