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
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]))

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]))

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.