Current day vs same week day last week
Best Answer
-
Your best bet is probably just to add a Beast Mode column that includes only those two dates. Example:
CASE
WHEN DATEDIFF(CURRENT_DATE(),`Date Field`) = 0 OR DATEDIFF(CURRENT_DATE(),`Date Field`) = 7 THEN 'Include'
ELSE 'Exclude'
END
Then filter that field to 'Include' rows.
1
Answers
-
Hi all,
Can anybody help @domo_ooed out?
Thanks!0 -
What kind of card are you trying to build? A multi-line chart showing week over week trends or something else?
0 -
Bar chart showing daily volumes by provincial distribution. Currently I show last 9 days so that it will show data 29th Aug Monday to Sep 5 Monday.
Ideally I want to show only 29th August Monday and Sep 5th monday excluding all other days (like a Week over week view)
0 -
To make sure I'm following, you'd like to see a card looking at yesterday vs a week ago from yesterday where the X axis is your provincial groupings?
0 -
Stacked graph (with provincial grouping adding to 100%)
X axis will be time axis (yesterday and last week) Chart sample
0 -
Your best bet is probably just to add a Beast Mode column that includes only those two dates. Example:
CASE
WHEN DATEDIFF(CURRENT_DATE(),`Date Field`) = 0 OR DATEDIFF(CURRENT_DATE(),`Date Field`) = 7 THEN 'Include'
ELSE 'Exclude'
END
Then filter that field to 'Include' rows.
1 -
@domo_ooed, tagging you to check out shaanarora's latest reply.
0 -
perfect this works.
Thanks.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive