Forum Discussion

quincy_p's avatar
quincy_p
Icon for Advocate I rankAdvocate I
5 months ago
Solved

Building Deadlines based off Start, End Dates and Frequency

Hi there - I am trying to build a deadline table for products and when they need to be serviced.  Every product has a start date, end date and a service frequency so if its a 5 year contract, it wil...
  • DanieleUgoCopp's avatar
    5 months ago

    Hello,

    I’m not completely sure, but this usually happens when your grouping key isn’t really unique, so PMs from different contracts get mixed together and the index just keeps growing, that’s why you see values like 42 or 90 your Contract Key looks solid at first glance, but I’d double check for hidden nulls, text vs number mismatches, or small differences like spaces or formats, even one mismatch can merge contracts silently another thing I’d try is to sanity check the Service_Dates list itself, maybe for some rows the List.Generate condition never stops correctly, so you’re generating way more dates than expected, you could temporarily add a List.Count column to confirm if I had to simplify, I’d compute the expected number of PMs first using something like duration / frequency and cap the list explicitly, instead of relying only on the <= EndDate condition, that’s usually more robust

    Best regards,
    Daniele