Forum Discussion
Anonymous
8 years agoNot applicable
Calculated table with all dates between two dates
Hi All, I am trying to create a calculated table that lists all tickets and a record for each day that it was opened based on the Start Date and End Date columns. If the End Date is blank (i.e. t...
- Anonymous8 years ago
FYI - I pieced together some google searches and was able to do what I needed in the query editor:
- Duplicated my source table
- Created a custom column with today's date using the following: DateTime.LocalNow() as datetime
- Changed that column to a date type instead of datetime
- Added another custom column using: if [Closed Date] = null then { Number.From([Opened Date])..Number.From([Today]) } else { Number.From([Opened Date])..Number.From([Closed Date]) }
- Expanded the column to rows
- Changed to a Date type
- Removed all the remaining columns I didn't need.
Anonymous
8 years agoNot applicable
FYI - I pieced together some google searches and was able to do what I needed in the query editor:
- Duplicated my source table
- Created a custom column with today's date using the following: DateTime.LocalNow() as datetime
- Changed that column to a date type instead of datetime
- Added another custom column using: if [Closed Date] = null then { Number.From([Opened Date])..Number.From([Today]) } else { Number.From([Opened Date])..Number.From([Closed Date]) }
- Expanded the column to rows
- Changed to a Date type
- Removed all the remaining columns I didn't need.