Hi guys, im new to powerapps. Ive been using it for about two months now. My boss has me developing a Tracker app where the users have a button to automatically create a twelve month item list based off a submitted Start Date. He requested a a Fiscal Year column in the table as well.
I got it to work relatively well by creating the items based of the Start Date using the DateAdd function. So example, using Collect the list is created in SP with:
DateAdd(Date, 1, Months)
DateAdd(Date, 2, Months)
and so on..
The problem is the Fiscal Year though. Since our FY is from October to September i am having a difficult time creating the logic to enter the correct FY for the items based on the submitted Start Date. Setting a logic like:
"If Month>=10, Fiscal Year+1, Fiscal Year", doesn't work because if the Start Date submitted is 9/1/2020 then a 12 item list would be created rolling over into Jan of 2021. January's value is 1 which is less than 10 and returning a FY of 2020.
Im probably over thinking this but if anyone could assist with the logic it'd be much appreciated.