count of consecutive days
2 TopicsConsecutive Minutes run and missing days in between
Hi, I'm trying to create the 'CONSECUTIVE MINUTES' column and the 'MISSING DAYS STATUS' CONSECUTIVE MINUTES IS IF THE STATUS REMAINS THE SAME WITHIN THE DAY FOR THE SAME ID, and counting the minutes from the last status if consecutive. 'MISSING DAYS STATUS' should be days missing in between any of the status changes. I'm having a difficulty with this piece and tried using similar approaches. ID DATTIME TIME STATUS CONSECUTIVE MINUTES MISSING DAYS STATUS XYZ 3/13/2023 2:00PM COMPLETED XYZ 3/13/2023 3:30PM COMPLETED 90 BYZ 3/14/2023 9:00AM INCOMPLETE BYZ 3/14/2023 11:00AM INCOMPLETE 120 XYZ 3/15/2023 5:00PM INCOMPLETE 2 BYZ 3/17/2023 9:00AM COMPLETED 31KViews0likes4CommentsDax to obtain count of consecutive days with non consecutive dates
Hi everyone, I have a table organized by Date + ID and I would like to get in a 3rd column a count of consecutive days based on these 2 variables: Date ID ConsecutiveDaysNum 1/1/2020 52 1 1/2/2020 52 2 1/3/2020 52 3 1/4/2020 52 4 1/8/2020 52 1 1/9/2020 52 2 1/1/2020 789 1 1/2/2020 789 2 1/3/2020 789 3 1/15/2020 789 1 Is there a DAX code for this? Any help will be really appreciated, thanks in advance! MichelleSolved1.2KViews0likes2Comments