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.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.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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