Setting up a count off of different date rules in ETL
Hi everyone,
I'm trying to set up a column that would show me how many workdays to pay a consultant for, depending on how many days they worked for over the month.
The variables are whether the start or end date was during that month (and so they would only be comped for that part of the month - from start to month end of form month start to work end).
I've tried to set up an ETL process to give me the month and year for different date points to compare against one another to see which rule should apply. I then tried to set up a case to give me the relevant number of workdays from different columns in the data set, depending on the situation (below), but keep getting a syntax error message.
Any ideas on how I could make this work?
Best Answer
-
From a syntax perspective, you are missing an END statement. You only have one, but you need two because you have two CASE statements.
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.2
Answers
-
What's your dataset structure like? If you can get it to a row per day worked, you could join to the calendar dimension, and then do a group by on month and year to count the number of days worked.
3 -
This is exactly what I needed, thank you!
0
Categories
- 11K All Categories
- 5 Private Company Board
- 2 APAC User Group
- 12 Welcome
- 42 Domo News
- 9.9K Using Domo
- 2K Dataflows
- 2.5K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 349 Workbench
- 267 Domo Best Practices
- 12 Domo Certification
- 474 Domo Developer
- 51 Domo Everywhere
- 110 Apps
- 726 New to Domo
- 85 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 29 お知らせ
- 65 Kowaza
- 301 仲間に相談
- 664 ひらめき共有