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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Natz1995
Frequent Visitor

Monthly Average Based on Fixed Number

Hi 

 

I need a solution to be able to filter my data to month/year and calculate average based on the number of hours in each month

 

Example: #of Hours Machine is down by Month / Hours Accumulated for that Month

 

Hours Accumulated for Month is set each month (e.g. January = 31 days x 24 hours = 744 hours)

 

I need to able to calculate the average time my machine goes down monthly based on the set hours each month.

 

Can anyone help me?

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Natz1995 ,

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Percentage-to-goal-by-dynamic-date-range/m-p/642778#M307965

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I got the following error

 

The following syntax error occurred during parsing: Invalid token, Line 8, Offset 17, #.

 

Example of my dataset:

 

Table 1

Month/Year

Sum of Hours Down

2019 01

13

2019 02

27

 

Table 2

Month/Year

# of Hours in a Month

2019 01

744

2019 02

620

 

I need the average of the sum of hours down in table 1 based on the # of hours in a month in table 2. I tried the formula you provided but I got a syntax error.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors