Adding "Last Updated" Label to Card
Comments
-
A couple options for this. At the bottom of the card, it shows when the dataset was last updated. It looks like this:
You can also create a beast mode field and make it display in the summary number area. Your beast mode formula would look something like this:
CONCAT('Last run at: ',MAX(`_BATCH_LAST_RUN_`))
And it would display like this:
You could apply some additional date/time functions within your beast mode formula to get it formatted to your preference.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Hi how you can get the _BATCH_LAST_RUN_ field? i am using dataset create from DOMO API and i couldn't find where i can get fields like _BATCH_LAST_RUN_ or _BATCH_ID_
0 -
Not all datasets necessarily have the BatchLastRun Date (which ... admittedly is a bit of an oversight).
In the absence of the column, you could pull that data from the DomoGoverance_Dataset dataset and JOIN that data into your dataset. Just be aware that the data in the DG dataset will only be current as of the last time it was run.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
I see so are you confirming that there is no possiblity to get such columns from domo API?
0 -
No. that's not at all what i said!
Of course you can get it from the Dataset API.
https://developer.domo.com/docs/dataset-api-reference/dataset
If I needed up to date information like this in Domo, i think i'd try to find a clever way to script the collection of this information for a subset of datasets in a CSV via the JavaCLI, and then automate pushing that data into a dataset periodically.
This tutorial video isn't specifically about your use case, but it does walk you through setting up and using the Java CLI if you haven't touched it before. https://www.youtube.com/watch?v=ysUHYaICYD8&list=PLUy_qbtzH0S4eYAu13c-NMnyOuxJwspzh&index=1
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
thank you for your reply. Actually this raise another question to me.
Is there any feature for deleting specific records in dataset other than using dataflow(ETL/MYSQL etc)?
i know the function datarepair to delete records of each update but what if we want to delete only a part of records from last run for instance
0 -
Ultimately the answer is 'yes, sort of'. But it's much more nuanced.
The files in Domo's Vault (where your dataset gets stored and backed up) is most akin to file-based datalakes. Think Amazon S3 or Dropbox even.
Because data is functionally stored as a text file, you can't really ask to "delete a record" because ... it's a text file, there's no easy way to access one row of data in the CSV without piping it through some sort of parsing / processing engine (like an ETL).
You're accustomed to 'just' deleting records, in a database table because that recordset is stored in a structure that's fundamentally designed for that task (CRUD operations). The power of Data Lake architecture is it's ability to CHEAPLY and RAPIDLY store massive text files (but not necessarily to apply CRUD operations.
So ... change your paradigm as you think about how the data is stored in Domo / Data Lakes.
THAT SAID. Yes, you can 'just delete a row' or set of rows if you use PARTITIONING or UPSERT to store the data. PARTITIONING will (like the physical encyclopedias of yesterday) divide your dataset into volumes and store each volume as a separate file. So just like DELETE-ing or REPLACE-ing one (entire) book from an encyclopedia set, you can delete or replace one partition of a PARTITIONed dataset.
With UPSERT, your data is defined as having a key column that uniquely identifies each row of your dataset. You can use the java cli or API to delete or replace a list of upsert keys (and their associated values).
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thank you i would like to see an example of using partitioning to delete specific records. Is it possible?
0 -
you don't delete records with partitioning so much as replace a volume. This is a google-able topic, but this might give an idea: https://www.tutorialgateway.org/table-partitioning-in-sql-server/
Flags / Options in the javaCLI when you upload data will allow you to define partition column and values. so just use 'help' in the CLI for examples.
If you're unfamiliar with the topic, it may be a good idea to reach out to Domo Professional Services or a consultant / partner who can walk you through it.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 709 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive