Expand periodic data or create DAX formula

@Melissa Could you please elaborate and explain in more detail the function created, especially the list.generate part. I have a hard time intetpreting exactly what it does.

/Frede