Count of Business Days with activity mtd year over year
I currently compare business days with unit activity yoy using a yoy bar card set to MTD and displayed by day.
I'm looking for a better solution that will just show the count of business days to date in the month with activity and what it was through the same date a year ago. Does anyone have something that gives that comparison easily? I need something simple that a c level person can look at to know right away if we have comparible days or not.
Best Answer
-
So the first step is to pair the 'Working Day of Month' to each date in your range. If you don't already have that, here's a table that I use (accounts for major holidays) see attached.
Join that to your date that you're using. I would also include a constant for CurrentDay and Join to that to get the current working day of month. Once you have that I have 2 separate measures for each of my years in a Year over Year chart (using the grouped bar + line chart type). The current year is just
CASE WHEN YEAR(`Date`) = YEAR(CURRENT_DATE()) THEN `Amount` END
For the previous year I do something like this:
CASE WHEN YEAR(`Date`) = (YEAR(CURRENT_DATE())-1)
THEN CASE WHEN MONTH(`Date`) = MONTH(CURRENT_DATE()) AND `WorkingDayOfMonth` <= `CurrentWorkingDayofMonth` THEN `Amount`
WHEN MONTH(`Date`) < MONTH(CURRENT_DATE()) THEN `Amount`
END
ENDAnd then I graph by month. You can also add a variance line by taking (Current Year / Previous Year) -1
This allows our C-Level execs to see counts by month, this year vs last year, and also see current month through the same working day last year. Including the Variance as your summary for all values will give you the YTD vs LYTD variance as a whole.
Hope that helps get you started. Let me know if you have questions on this,
Valiant**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.1
Answers
-
So the first step is to pair the 'Working Day of Month' to each date in your range. If you don't already have that, here's a table that I use (accounts for major holidays) see attached.
Join that to your date that you're using. I would also include a constant for CurrentDay and Join to that to get the current working day of month. Once you have that I have 2 separate measures for each of my years in a Year over Year chart (using the grouped bar + line chart type). The current year is just
CASE WHEN YEAR(`Date`) = YEAR(CURRENT_DATE()) THEN `Amount` END
For the previous year I do something like this:
CASE WHEN YEAR(`Date`) = (YEAR(CURRENT_DATE())-1)
THEN CASE WHEN MONTH(`Date`) = MONTH(CURRENT_DATE()) AND `WorkingDayOfMonth` <= `CurrentWorkingDayofMonth` THEN `Amount`
WHEN MONTH(`Date`) < MONTH(CURRENT_DATE()) THEN `Amount`
END
ENDAnd then I graph by month. You can also add a variance line by taking (Current Year / Previous Year) -1
This allows our C-Level execs to see counts by month, this year vs last year, and also see current month through the same working day last year. Including the Variance as your summary for all values will give you the YTD vs LYTD variance as a whole.
Hope that helps get you started. Let me know if you have questions on this,
Valiant**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive