Repeat Data Rows based on Start and End Date

Repeat Data Rows based on Start and End Date

I want to create a capacity heat map in ZOHO. The first step was to develop this query (below) to determine the "Capacity Start Date" , "Hours p/Day Remaining", and "Scheduled End Date." Now that I have all that, I want to create a new query that will essentially reference the one below, but spread those "Hours p/Day Remaining" across all the days between "Capacity Start Date" and "Scheduled End Date" by the Department, Network ID, etc.


The Simplest way to explain the final goal, is that I would like to generate a new "Date" column in the new query, and repeat the entire row of data on each date under the new date column between the Start and End Dates

For instance, if a row (Network) has a "Capacity Start Date" of 4/1/2022 and the "Scheduled End Date" is 4/5/2022 I want to create a NEW DATE COLUMN and repeat that entire row of data using dates 4/1, 4/2, 4/3, 4/4, 4/5 for the NEW DATE COLUMN

Any suggestions on the next step?
SELECT
         "JobStatus" AS "Job Status",
         "Division" AS "Division",
         "DepartmentName" AS "Department",
         "CustomerName" AS "Customer",
         "Network" AS "Network",
         "EstStartDate" "Scheduled Start Date",
         "EstEndDate" AS "Scheduled End Date",
         "ActStartDate" AS "Actual Start Date",
         "ActEndDate" AS "Actual End Date",
         "EstimatedHours" AS "Budgeted Hours",
         "ActualHours" AS "Hours Consumed",
         "Remaining Hours",
         to_integer(date_diff("EstEndDate", current_date())) AS "Remaining Days",
         "Remaining Hours" / to_integer(date_diff("EstEndDate", current_date())) AS "Hours p/Day Remaining",
         "Budget Consumed Percent_Reference Only" * 100 AS "% Of Budget Consumed",
         "PercentComplete" * 100 AS "POC",
         "Kickoff Date",
         "Dock Date",
         "PM",
         "QA",
         "LB",
         (row_number() over()) AS "Auto Number",
         add_date("EstEndDate", ROUND("Remaining Hours" / -24)) AS "Latest Start Date",
         find_max_value(add_date("EstEndDate", ROUND("Remaining Hours" / -24)), current_date()) AS "Capacity Start Date",
          to_integer(date_diff("EstEndDate",find_max_value(add_date("EstEndDate", ROUND("Remaining Hours" / -24)), current_date()))) AS "Capacity Remaining Scheduled Days"
FROM  "Eagle_AllHoursReport" 
WHERE    "JobStatus"  IN ( 'In Process'  )
 AND    "EstEndDate" - current_date()  >= 1
 AND    "Remaining Hours"  >= .01


      • Sticky Posts

      • Announcing Zoho Analytics 6.0 Beta!

        We are delighted to open up the next major version, Zoho Analytics 6.0 Beta! The new version comes packed with a wide range of functionalities for all persona, namely business users, data analysts, data engineers, and data scientists. Zoho Analytics team
      • What's New in Zoho Analytics - August 2024

        Hello Users! We are back with the latest updates and enhancements made to Zoho Analytics. Keep reading to learn more about them. Connect to the data hosted in the cloud without allow-listing the IP addresses Utilize Zoho Databridge to connect to the data
      • We are coming to your city! Zoho Analytics Community Meetup

        Hello, business leaders and data enthusiasts! We are delighted to announce that registrations are now open for the ZUG meetups, and we can't wait for you to be a part of them. Our in-house analytics experts are geared up to lead discussions on constructing
      • Zoho Analytics: 2021 Look Back

        As we start a new year in 2022, here's some of our top moments from 2021. Zoho Analytics in 2021
      • [Customer Talk] PREMO Group's Analyst Interview at Zoho Day 2022

        Premo Group, a 50 year old Spanish Manufacturing Company, has been our long-standing customer with #ZohoAnalytics. They've been using our platform for their end-to-end, unified business analytics solution.  Hear more from Claudio Cabeza, Director at PREMO