Forum Discussion

siumui's avatar
siumui
Icon for Helper I rankHelper I
2 years ago
Solved

DAX Count consecutive days

  Hi,   I’m new to Dax.   For each ID I would like to add 1 column name Count.  This would count consecutive days and reset to 1 if not consecutive.  My data do not have weekends date.  So if th...
  • ThxAlot's avatar
    2 years ago

    Add a calendar table and an index column to facilitate the calculation; but it's never for a novice as it leverages embedded table iteration.

     

    (2023/11/23 is marked as non-working day on purpose; therefore 2023/11/24 is calculated as consecutive day)