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

Calculate Average Monthly Sales

Hi Experts

 

I would like to calculate avg.monthly sale based on my sales data. by Year by Month (if that makes sense). 

 

See sample pbix. either as a calulcated column or measure route

sample file

https://www.dropbox.com/s/ontqwu6v70er0lb/sample.pbix?dl=0 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , I think you need Avg of Sum, Above month level.

 

Sum till month level and Avg above

averageX(Values('Date'[Month Year]), CALCUALTE(Sum('Table'[Sales])))

 

Discussed here how to use summarize for that

https://www.youtube.com/watch?v=qE5KBp4uP0g

View solution in original post

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please correct me if I wrongly understood your question.

If the below picture is what you are looking for, please check the link below that is the sample pbix file's link.

 

Picture3.png

 

https://www.dropbox.com/s/54joh9bod275lml/2021%200330.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please correct me if I wrongly understood your question.

If the below picture is what you are looking for, please check the link below that is the sample pbix file's link.

 

Picture3.png

 

https://www.dropbox.com/s/54joh9bod275lml/2021%200330.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@Anonymous , I think you need Avg of Sum, Above month level.

 

Sum till month level and Avg above

averageX(Values('Date'[Month Year]), CALCUALTE(Sum('Table'[Sales])))

 

Discussed here how to use summarize for that

https://www.youtube.com/watch?v=qE5KBp4uP0g

Anonymous
Not applicable

Hi Amit can you kindly add the measure to my PBIX File??

Anonymous
Not applicable

Hi Amit is this a measure or cal column.

@Anonymous , It is a measure.

 

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.