cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
osama_ayoub
Helper I
Helper I

creating measure to calculate the average of sum of value

I have a table and I want to create measure to calculate the monthly average of total cost per each day

so

1- I want to sum the total value per each date 

2- I want to get average of the sum per each month (the number of days per each month are not equal ,I mean there are 5 dates in august but in sepryember only 4 ....etc) 

 

I hope my question is clear enough

Best Regards 

 

osama_ayoub_0-1669802432811.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@osama_ayoub , Try a measure like

 

averagex(Values(Table[Date]), calculate(Sum(Table[Value])) )

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@osama_ayoub , Try a measure like

 

averagex(Values(Table[Date]), calculate(Sum(Table[Value])) )

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors