ahmed4566
(Syed S Ahmed)
April 13, 2024, 3:48pm
1
With reference to [How to take previous quarter in uipath ]
I have a file in the shared folder and bot needs to pick the latest file from the last quarter.
link: “D:\Accounting\Finance\RealState\LeaseExpirationRports\CY24\Q1\RealState Leases\Real Estate_Lease Expiration_Q1 as of 03.19.24.xls”
shared folder path: S:\Accounting\Finance\RealState\LeaseExpirationRports
How to get the latest file from the last quarter?
bot will run on mid may and has to read the latest file from last quarter (Jan-March 24)
And how to validate if bot runs on Jan 2025 and has to pick the file from last quarter(Oct,Nov,Dec 2024)?
Anil_G
(Anil Gorthi)
April 13, 2024, 4:25pm
2
@ahmed4566
What are your quarters ?
This is a reference for you
@kaurM
Please try this
For quarter
If({6,9,12,3}.Contains(Now.Addmonths(-1).Month),If(Now.AddMonths(-1).Month=6,"Q1", If(Now.AddMonths(-1).Month=9,"Q2", If(Now.AddMonths(-1).Month=12,"Q3","Q4"))) + "-Constant-FY",Now.Addmonths(-1).ToString("MMM-")) + If({1,2,3}.Contains(Now.AddMonths(-1).Month),Now.addMonths(-1),Now.addmonths(-1).Addyears(1)).ToString("yy")
Hope this helps
Cheers
Cheers
ahmed4566
(Syed S Ahmed)
April 17, 2024, 4:32am
3
Bro I got the solution with the different approach but u tried so I appreciate that.
1 Like
system
(system)
Closed
April 20, 2024, 4:32am
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.