Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ybatistamayo
Helper III
Helper III

Average of the number of items sold per month

I want to calculate an average of the number of items sold per month.
always taking into account the year and month filters.
if for example I have selected the months of April, May, June, July 2015 the calculation should be the quantity of items sold in that period between 4 months

 

The result

ave.png

 

Here the link pbxi: https://we.tl/t-vdJDiljoDT

1 ACCEPTED SOLUTION

Try

Total Average = [Sales]/DISTINCTCOUNT(Pedidos[Fecha de pedido].[Mes])

 

https://www.dropbox.com/s/rqg2d4fx9g8m3rn/Average%20per%20month.pbix?dl=0

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
DAXRichArd
Resolver I
Resolver I

The file link comes back with:

Yikes, that page can’t be found.

Head back to wetransfer.com or cheer up your eyes with some nice things we wrote.

Try

Total Average = [Sales]/DISTINCTCOUNT(Pedidos[Fecha de pedido].[Mes])

 

https://www.dropbox.com/s/rqg2d4fx9g8m3rn/Average%20per%20month.pbix?dl=0

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.