Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
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
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 44 | |
| 42 | |
| 20 | |
| 18 |