Previous day status from snapshot data

I have snapshot data everyday that has customers and their statuses. I want to create a formula that looks back one day and reports the status (previous day status) How would I do that in Magic ETL?

Tagged:

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can use a Rank and Window tile with LAG to get the prior value based on your sorting.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can use a Rank and Window tile with LAG to get the prior value based on your sorting.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**