The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello All,
I am trying to get the hourly occupancy.
I the have a start date / start time and end date / end time of each transaction (see example of dataset below). The total stalls per Lot is in a different table (REVLOTS [StallCount])
Appreciate the help!
You might be able to use a calander table and an hour table (hours in a day).
Then it might help to change the granularity of your data and turn it into a set of records that records one record for each hour of occupancy.
Then your calculations of percent of occupancy should be much simpler.
Help when you know. Ask when you don't!
What would be the best way to change the granularity of each transaction to show it per hour instead of the time range?
for example, your first record, that goes from 2 pm one day to 12 pm the next would expand into 22 records, one for each day/hour of occupancy.
Help when you know. Ask when you don't!
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |