I have a table that lists our deals with the subscription start and end dates and total deal size($). I am trying to transform it so that for each deal, there is either:
- a row for each month the subscription is active and pull in the subscription value. OR
- a row for each deal with columns representing each month falling between min(startdate) and max(enddate) where the month fields contain the deal value.
I am hoping that Dataprep can assist with this rather than wrestling with figuring out how to do it via SQL.
Attaching two screenshots to provide a visual of what I am trying to get to. Either option would be fine but the wider version is preferable (one row per deal with columns for each month deals were active.
TIA