You can use the Date Format tool to extract parts of date columns - such as a weekday or year. It is particularly helpful in combinations with others tools. Such as a Filter to keep transactions from the current year or a Group By + Combine to merge datasets by Year/Month.
The columns you use in the Date Format tool must be formatted as a date/datetime. Use the Change Columns tool to change column formats.
My employees shouldn’t make general ledger entries in the week, so I want to find all the ones where that’s the case
See how we use the Filter to keep only the transactionDate_weekday values that are larger than 5 - note that weekday = 6 is a Saturday and weekday = 7 is a Sunday
Filter on Current Year
I only want to keep records that happened in the current year
See how we use the Today to generate a dynamic current timestamp. Then we use the Date Format to extract a year from both our transactionDate and today column. Lastly, we add a Filter that only keeps the records where the year of today and of the transactionDate are the same.
Sales by Weekday
I want to understand how my sales are distributed according to weekdayAfter the Group By tool you can get results like the below