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
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
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.