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.2K Product Ideas
- 1.2K Ideas Exchange
- 1.3K Connect
- 1.1K Connectors
- 273 Workbench
- 2 Cloud Amplifier
- 3 Federated
- 2.7K Transform
- 78 SQL DataFlows
- 525 Datasets
- 2.1K Magic ETL
- 2.9K Visualize
- 2.2K Charting
- 435 Beast Mode
- 22 Variables
- 513 Automate
- 115 Apps
- 390 APIs & Domo Developer
- 8 Workflows
- 26 Predict
- 10 Jupyter Workspaces
- 16 R & Python Tiles
- 332 Distribute
- 77 Domo Everywhere
- 255 Scheduled Reports
- 66 Manage
- 66 Governance & Security
- 1 Product Release Questions
- Community Forums
- 40 Getting Started
- 26 Community Member Introductions
- 68 Community Announcements
- 4.8K Archive