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.
Hello Community,
I need to calculate the hours of accidents.-
I have a table (Bd Accidents) with the Start and End Date of an accident:
On the other hand, I have my calendar table, where I have determined the working days and the hours that correspond to each day.
I would like to create a measure, which adds the number of hours ( Hours Day of the calendar table ), for the days in which each of the people was injured (Table BdAccidents).
I will appreciate your help.-
Slds,
Solved! Go to Solution.
Hi,
It can be automatically in the Query Editor using
{[StartDate]..[EndDate]}
You can then expand this new column.
Hi,
I think the approach should be to create one row for each date (between the start and end date) in Table A. Then create a relationship (Many to One and Single) from this Date column and the Date column in the Calendar Table. To your visual, drag any date field from the Calendar Table.
Dear
Is there a function that does it automatically? or would you be proposing that it be done manually?
Hi,
It can be automatically in the Query Editor using
{[StartDate]..[EndDate]}
You can then expand this new column.
@Syndicate_Admin , You can create a time table join it with time part, it can have hour to group data hour wise
https://kohera.be/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
99 | |
88 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |