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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Monthly average

Good afternoon community. I have reviewed several posts related to the issue of calculating the Monthly Average, I have implemented several of the formulas they have given, but it does not give me the correct results. I have this information:

LuisHQ1171_0-1654721033085.png

of those monthly totals, I need to take out the average sale for each month. I do it in a static way, verify it by doing the calculation on foot, and the result that throws me is correct, but it is not the idea of making it static, because if I make multiple selection of two or more months, it must give me the correct result and it does not.

LuisHQ1171_1-1654721143049.png

LuisHQ1171_3-1654721379956.png

In advance thank you for your help.

Best regards

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Ensure you have a Calendar table.  Create a slicer from the Year column of the Calendar Table and select 2022.  To your visual, drag Month name from the Calendar Table.  Write this measure

=divide([Total venta mensual],countrows(Calendar))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

Thank you very much, having known that the measure was simple, with your formula if I throw the correct averages.

Thankful, greetings

Ashish_Mathur
Super User
Super User

Ensure you have a Calendar table.  Create a slicer from the Year column of the Calendar Table and select 2022.  To your visual, drag Month name from the Calendar Table.  Write this measure

=divide([Total venta mensual],countrows(Calendar))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the reply, but in case you want to average daily, for example Sales $, of each month, but with business days from Monday to Friday, Monday to Saturday and Monday to Sunday, how could I do it?

For the current month and closed months.

Thank you!

Hi,

Share some data to work with, explain the question and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for responding. What I'm looking for is this:

gus_jr_0-1714104319492.png

In which I have created 2 measures (e.g. days Monday to Friday)

1 Business Days of the month: applies to closed months prior to the current one (current month April: 22 days)

2 Elapsed Business Days of the month: applies to unfinished month, i.e. current month (as of today 04/26: 20 days)

What I need is a daily average: divide by the 1 Business Days of the Month in previous months, already closed

y

divide by the 2 Past Business Hours of the Month in the current month, sales, profits, volumes, etc.

I hope I've been clear.

- Monday to Friday

Hi,

There is nothing i can understand there.  Someone who does will help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you anyway. Question is it because of the language, or do you not understand what I am trying to say?

Thank you!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors