Forum Discussion
Separate Rows in to days based on Start and end date/time
- 8 years ago
Hi rtillery2000,
Please check out the demo here.
1. Add a custom column like this.
{Number.From([StartDate])..Number.From([EndDate])}2. Expand the custom column.
3. Change its type to Date. (not datetime).
4. Add a new column "NewStart".
if ( [Temp] = [StartDate]) then [StartTime] else [Temp]
5. Change its type to datetime.
6. Add a new column "NewEnd".
if ([Temp] = [EndDate]) then [EndTime] else [Temp] & #time(23,59,59)
7. You can delete the old two columns.
Best Regards,
Dale
Hi rtillery2000,
Please check out the demo here.
1. Add a custom column like this.
{Number.From([StartDate])..Number.From([EndDate])}2. Expand the custom column.
3. Change its type to Date. (not datetime).
4. Add a new column "NewStart".
if ( [Temp] = [StartDate]) then [StartTime] else [Temp]
5. Change its type to datetime.
6. Add a new column "NewEnd".
if ([Temp] = [EndDate]) then [EndTime] else [Temp] & #time(23,59,59)
7. You can delete the old two columns.
Best Regards,
Dale
- rtillery20008 years agoFrequent Visitor
Thank you, that was much easier than the route I was headed down.
- roenson7 years agoNew Member
Hi
I'am looking for an almost similar solution.
Contract Position from Date to Date over an periode (multiple years)
Split the contract positon amount over all month with creating multiple rows.
any ideas - help would be great!
thx Reto
Solution with an array per year Contract-Nr. Pos1 Betrag Jahr von bis Koar Anzahl M Anzahl J amount/m m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 41.67 41.67 41.67 41.67 41.67 41.67 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 41.67 41.67 41.67 41.67 41.67 41.67 41.67 41.67 41.67 41.67 41.67 41.67 5001 5000.0001 1000 2019 01.07.2017 30.06.2019 455500 24 3 41.67 41.67 41.67 41.67 41.67 41.67 41.67 5001 5000.0002 2500 2017 01.07.2017 30.06.2019 475000 24 3 104.17 104.17 104.17 104.17 104.17 104.17 104.17 5001 5000.0002 2500 2018 01.07.2017 30.06.2019 475000 24 3 104.17 104.17 104.17 104.17 104.17 104.17 104.17 104.17 104.17 104.17 104.17 104.17 104.17 5001 5000.0002 2500 2019 01.07.2017 30.06.2019 475000 24 3 104.17 104.17 104.17 104.17 104.17 104.17 104.17 5001 5000.0003 1500 2017 01.07.2017 30.06.2019 550000 24 3 62.50 62.5 62.5 62.5 62.5 62.5 62.5 5001 5000.0003 1500 2018 01.07.2017 30.06.2019 550000 24 3 62.50 62.5 62.5 62.5 62.5 62.5 62.5 62.5 62.5 62.5 62.5 62.5 62.5 5001 5000.0003 1500 2019 01.07.2017 30.06.2019 550000 24 3 62.50 62.5 62.5 62.5 62.5 62.5 62.5 OR BETTER: FOR EACH MONTH ONE ROW Month 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 7.2017 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 8.2017 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 9.2017 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 10.2017 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 11.2017 5001 5000.0001 1000 2017 01.07.2017 30.06.2019 455500 24 3 41.67 12.2017 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 1.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 2.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 3.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 4.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 5.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 6.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 7.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 8.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 9.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 10.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 11.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 12.2018 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 1.2019 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 2.2019 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 3.2019 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 4.2019 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 5.2019 5001 5000.0001 1000 2018 01.07.2017 30.06.2019 455500 24 3 41.67 6.2019