Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
For a group of machines which are a certain number of hours available per month I want to calculate the utilization rate. My (simplified) data looks like this, with the first picture the Machines and the second the Hours logged table.
I have used a measure to calculate the utilization:
For department B, the utilization is not as I wan't it to be. Machine #4 is not rented until 1-2-2023, so I do not want these available hours included in the Sum of hours available in January.
I tried several measures such as:
However, I also cannot get this to work, since this uses a single value for the date, but it should be evaluated for every single machine.
I was thinking of making an extra table with all the months/machines/amount of hours available in that month, but I'm hoping there is an easier way.
Solved! Go to Solution.
Step 1: Make a date table:
Plz share the pbix or the sample data. Will try to get exact solution
Hello Rupak_bi, I can't upload any file, but my data tables are:
Machines:
Machine | Department | Hours available per month | Rented from date | Rented to date |
1 | A | 60 | 1-1-2023 | 31-1-2023 |
2 | A | 50 | 1-11-2022 | 28-2-2023 |
3 | A | 60 | 1-10-2022 | 30-4-2023 |
4 | B | 50 | 1-2-2023 | 13-10-2023 |
5 | B | 70 | 1-10-2022 | 31-3-2023 |
Hours logged:
Date | Machine | Number of hours |
1-1-2023 | 3 | 10 |
2-1-2023 | 1 | 2 |
2-1-2023 | 3 | 2 |
3-1-2023 | 2 | 5 |
4-1-2023 | 3 | 1 |
5-1-2023 | 5 | 6 |
TblDate:
Hi,
please see below. is it correct?
Yes this is indeed the result I'm looking for, very curious how you managed to do so 🙂
Step 1: Make a date table:
create a measure to calculate available hrs as below
calculate(sum(Machines[Hours available per month]),month(selectedvalue(date))>=rented from date &&month(selectedvalue(date))<rented to date.
now use this measure to calculate utilization.
Thank you for your reply, but when I try this measure no values are displayed. To be clear, when referring to date, do you mean the date of the dates table or the date in the Hours logged table?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |