cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Monthly average without accumulated

I would like to calculate the average of the monthly data obtained from some daily data. I don't want the daily accumulated data to be displayed, but to obtain the monthly average of all the data.


When I apply the daily filter, I have the correct value but when I apply the monthly filter it shows me the accumulation of all days.

 

Thanks in advance for your help

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Try like

 

Avg Sales = CALCULATE(Averagex(Values('Date'[Date]) , calculate(SUM(Sales[Sales Amount]))) ,DATESMTD('Date'[Date]))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

View solution in original post

Anonymous
Not applicable

I have solved it by changing the dates of the month that was giving me problems.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks @amitchandak .

I got the following error when I used this measure. That's happening only during the month of september. 

claud2022_0-1643389121566.png

 

Do you know why I have this error?

Anonymous
Not applicable

I have solved it by changing the dates of the month that was giving me problems.

amitchandak
Super User
Super User

@Anonymous , Try like

 

Avg Sales = CALCULATE(Averagex(Values('Date'[Date]) , calculate(SUM(Sales[Sales Amount]))) ,DATESMTD('Date'[Date]))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!