Last month (when the data is uploaded on the 15th)
When I try to select show last month but because of the way my data is uploaded (e.g. January data is uploaded on 14th February, February data is uploade on 14th March etc) it doesnt load any data between the 1st and 14th of the month when you selct "last month".
Is there perhaps a beastmode I could use to achieve this instead?
Comments
-
What's the actual date range you would like to display?
If you uploaded on Feb 14, would you want to see Jan 14-Feb 14 or Jan 1 - Feb 14?
You could change the timeframe to something like Last 30 days.
The Last Month option would look at it as Jan 1st to Jan 31st.
Once I know a bit more about what behavior you want it to have, I should be able to help you a bit more with the BeastMode or SQL transform that may be needed.
Sincerely,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.0 -
I would want to see 1st Jan - 31st Jan, which is fine after the 14th once the january data is uploaded but before then (February 1st-14th) I want to continue showing Decembers data (1st Dec - 31st Dec) because January's data isnt available yet (It's a pain I know)
0 -
Ok, so to do that you would need to create a data transform.
You could do something like this:
Transform 1:
SELECT *, MAX(`date`) as MaxDate
FROM datasetTransform 2:
SELECT * from transform 1 WHERE MONTH(`date`) = MONTH(`MaxDate`) AND YEAR(`date`) = YEAR(`MaxDate`)
This would limit your data so you could display date range for 'All Time' and have it always be your most recent month of data.If you wanted to not limit at the dataset level but use a BeastMode filter, you could do just Transform 1 and then in BeastMode do:
CASE WHEN MONTH(`date`) = MONTH(`MaxDate`) AND YEAR(`date`) = YEAR(`MaxDate`) THEN 1 ELSE 0 END
And just filter on 1
The reason you can't just do in BeastMode is the MAX function is an aggregation function, which is invalid when using a BeastMode as a filter.
Hope this helps. Let me know if you have any other questions.
Sincerely,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.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
- 57 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