How can I calculate Current Month's Visits/Working Day * Next Month's Working Days?
The picture is of my current card. I want to use April's Current Visits/BD (Work day) * May's Work Days to get May's Projected Visits, same for at least a 3 month projection. I have tried different forecasting options in the card and am not getting May's Data or correct projections for the other data. The Arrived and Budgeted Data shown is calculated in the ETL Directly. The Interval Formulas I have tried, do not calculate the next month's data how I need. Is there a solution in Beast mode to use the calculation below to project by month for the next 3 months?
The Current Visits/BD calculation is:
(SUM(case when Appointment Status
= 'Arrived' then Visit Count
end) / (MAX(COUNT(DISTINCT case when Appointment Status
= 'Arrived' then Billable Date
end)) over (partition by Appointment Start Date
))) + Visits/BD
The Current Visits Interactive calculation is:
SUM(case when Appointment Status
= 'Arrived' then Visit Count
end) +
(((SUM(case when Appointment Status
= 'Arrived' then Visit Count
end) / (MAX(COUNT(DISTINCT case when Appointment Status
= 'Arrived' then Billable Date
end)) over (partition by Appointment Start Date
))) + Visits/BD
)
*
((max(Count of Billable Day
) over (partition by Appointment Start Date
))  ((MAX(COUNT(DISTINCT case when Appointment Status
= 'Arrived' then Billable Date
end)) over (partition by Appointment Start Date
)))))
Best Answer

Argh. I was trying to stay off the forum so others can answer. But I recently had to solve this for myself.
I created an ETL with an aggregate tile grouped by whichever fields were needed. With the visits in an aggregate and the amounts in another aggregate:The trick here is the count distinct values.
Then AFTER this group by step. Another group by step. Calculating current year and previous year…Year To Date. If you don't want YTD, remove the third line that has the less then equals.
CY YTD Visitssum(
case when YEAR(date
) = YEAR(CURRENT_DATE())
andtdate
<= CURRENT_DATE()
thenvisits
else 0 end
)PY YTD Visits
sum(
case when YEAR(date
) = YEAR(DATE_ADD(CURRENT_DATE(),365))
anddate
<= DATE_ADD(CURRENT_DATE(),365)
thenvisits
else 0 end
)
I had a lot of formulas for quarter, month, etc. I did those calculations after my group by steps.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Answers

Argh. I was trying to stay off the forum so others can answer. But I recently had to solve this for myself.
I created an ETL with an aggregate tile grouped by whichever fields were needed. With the visits in an aggregate and the amounts in another aggregate:The trick here is the count distinct values.
Then AFTER this group by step. Another group by step. Calculating current year and previous year…Year To Date. If you don't want YTD, remove the third line that has the less then equals.
CY YTD Visitssum(
case when YEAR(date
) = YEAR(CURRENT_DATE())
andtdate
<= CURRENT_DATE()
thenvisits
else 0 end
)PY YTD Visits
sum(
case when YEAR(date
) = YEAR(DATE_ADD(CURRENT_DATE(),365))
anddate
<= DATE_ADD(CURRENT_DATE(),365)
thenvisits
else 0 end
)
I had a lot of formulas for quarter, month, etc. I did those calculations after my group by steps.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Categories
 All Categories
 1.7K Product Ideas
 1.7K Ideas Exchange
 1.5K Connect
 1.2K Connectors
 292 Workbench
 4 Cloud Amplifier
 8 Federated
 2.8K Transform
 95 SQL DataFlows
 600 Datasets
 2.1K Magic ETL
 3.7K Visualize
 2.4K Charting
 685 Beast Mode
 43 App Studio
 38 Variables
 655 Automate
 170 Apps
 438 APIs & Domo Developer
 42 Workflows
 5 DomoAI
 32 Predict
 12 Jupyter Workspaces
 20 R & Python Tiles
 383 Distribute
 110 Domo Everywhere
 267 Scheduled Reports
 6 Software Integrations
 111 Manage
 108 Governance & Security
 8 Domo University
 25 Product Releases
 Community Forums
 39 Getting Started
 29 Community Member Introductions
 98 Community Announcements
 Domo Community Gallery
 4.8K Archive