interval
2 Topics15 min roll up to hour
Help! I'm using PowerBI RS (May 2023) with DirectQuery to Avaya CCMS database (odbc conncetion) I have 15 minute interval data that I'm trying to roll up to hourly data. I need to create an average talktime column which is calculated as [talktime] / [callsAnswered]. I can do this for 15 min intervals but I can't get it to roll up to the hour as I can only seem to have it calculate an average of an average (i.e. calculates the talktime/callsanswered for each row then sums the total together, this could be 4+ rows for every skillset every hour depending on how the data was recorded by the phone system. Since is over multiple skillsets so there will be multiple rows with the same date and time but different skill name for the row. I'd toyed with the idea of making a concatenated column with hour, skillset & date as an identifier for the skillset and the day and using that as a filter for CALCULATE where a concatenated expression of the same values had to equal the concatenated column but I don't know if that would work.EDIT it didn't. Here's a screenshot showing the layout I'm going for, the next column in the table needs to be a calculation of the filtered data on the visual's row. Here's a sample from the datasetSolved1.8KViews1like2CommentsDAX Measure to calculate grouped intervals?
Database sample: ID Data de início real Squad ID001 03/01/2022 00:00:00 Squad1 ID004 04/01/2022 00:00:00 Squad1 ID007 06/01/2022 12:00:00 Squad1 ID002 03/01/2022 14:00:00 Squad2 ID008 07/01/2022 23:00:00 Squad2 ID009 07/01/2022 23:00:00 Squad2 ID010 08/01/2022 03:21:06 Squad2 ID011 09/01/2022 05:00:00 Squad2 ID003 03/01/2022 22:30:00 Squad3 ID005 05/01/2022 23:00:00 Squad3 ID006 05/01/2022 23:00:00 Squad3 The DAX Measure must return the interval of the dates grouped by "Squad". Must return zero on first Squad row & when there's no interval between two dates. ID Data de início real Squad Interval (Days) ID001 03/01/2022 00:00:00 Squad1 0,00 ID004 04/01/2022 00:00:00 Squad1 1,00 ID007 06/01/2022 12:00:00 Squad1 2,50 ID002 03/01/2022 14:00:00 Squad2 0,00 ID008 07/01/2022 23:00:00 Squad2 4,38 ID009 07/01/2022 23:00:00 Squad2 0,00 ID010 08/01/2022 03:21:06 Squad2 0,18 ID011 09/01/2022 05:00:00 Squad2 1,07 ID003 03/01/2022 22:30:00 Squad3 0,00 ID005 05/01/2022 23:00:00 Squad3 2,02 ID006 05/01/2022 23:00:00 Squad3 0,00 I appreciate so much you help.Solved729Views0likes1Comment