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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors