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.4K Product Ideas
- 1.4K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 278 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.7K Transform
- 89 SQL DataFlows
- 556 Datasets
- 2K Magic ETL
- 3.3K Visualize
- 2.3K Charting
- 569 Beast Mode
- 11 App Studio
- 27 Variables
- 578 Automate
- 140 Apps
- 414 APIs & Domo Developer
- 23 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 351 Distribute
- 91 Domo Everywhere
- 258 Scheduled Reports
- 2 Software Integrations
- 92 Manage
- 89 Governance & Security
- 9 Product Release Questions
- Community Forums
- 42 Getting Started
- 28 Community Member Introductions
- 85 Community Announcements
- 4.8K Archive