Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-12947

Forecast Dashboard - Exclude results for Closed Days

    Details

      Description

      As a Product Owner I want the query on the Forecast Dashboard page to be updated so that records are NOT returned for Closed Days

      The issue that we are trying to solve is that the Forecast Dashboard is flooded with data.
      On Saturdays and Mondays, we try to pull Summaries and Full forecasts for Sundays, but CFA are not providing forecasts for Sundays

      • Saturday - Full Forecasts for Sunday
      • Monday - Summary Forecasts for Sunday

      Login > Administration > Forecast Dashboard

      // I believe that the query maybe based on some form of the query below (but I could be totally wrong about that :)
      
      --Stores in zone, that did not get a forecast for a given date
      --Get the stores that didn't import the Full Forecast - Today + 15 days
      select distinct ez.entityid,e.Entity,e.Status from tbentityzone ez with(nolock)
      join tbentity e with(nolock) on ez.entityid = e.entityid
      where ez.ZoneID = 770
      AND e.Status != 'Closed'
      and e.TempCloseDate is Null
      AND ez.EntityID not in (
      	select EntityID from Forecasting.forecast with(nolock)
      	where
      	BusinessDay = CONVERT(VARCHAR(10), getdate()+15, 121)
      	and GenerationDate > CONVERT(VARCHAR(10), getdate(), 121)
      	--BusinessDay = '2020-06-29'
      	)
      --Get the stores that didn't import the Summary Forecast - Today + 20 days
      select distinct ez.entityid,e.Entity,e.Status from tbentityzone ez with(nolock)
      join tbentity e with(nolock) on ez.entityid = e.entityid
      where ez.ZoneID = 770
      AND e.Status != 'Closed'
      and e.TempCloseDate is Null
      AND ez.EntityID not in (
      	select EntityID from Forecasting.forecast with(nolock)
      	where
      	BusinessDay = CONVERT(VARCHAR(10), getdate()+20, 121)
      	and GenerationDate > CONVERT(VARCHAR(10), getdate(), 121)
      	--BusinessDay = '2020-07-04'
      	)
      

      Goal

      • The goal is to suppress records for stores that are closed for a specific day, for example Sundays and Holidays (Thanksgiving & Christmas Day)

        Attachments

        1. screenshot-1.png
          54 kB
          Will Englefield
        2. screenshot-2.png
          139 kB
          Will Englefield
        3. screenshot-3.png
          7 kB
          Will Englefield
        4. screenshot-4.png
          4 kB
          Will Englefield
        5. screenshot-5.png
          35 kB
          Will Englefield
        6. screenshot-6.png
          30 kB
          Will Englefield
        7. screenshot-7.png
          36 kB
          Will Englefield
        8. screenshot-8.png
          25 kB
          Will Englefield

          Activity

            People

            • Assignee:
              will.englefield Will Englefield (Inactive)
              Reporter:
              will.englefield Will Englefield (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.