Hi @itsmeqp
To do this with PowerApps
First create a collection - this would be the hardcoding part
Here you can go upto 100 based on the number of years difference between todays year and the year user enters
So if you think it would be max 50 - then below array should go to 50
ClearCollect(ColNum,{Val:0},{Val:1},{Val:2},{Val:3},{Val:4},{Val:5},{Val:6},{Val:7},{Val:8},{Val:9},{Val:10})
Execute the above on App On Start
Then
To get the years collection
Clear(colYears);ForAll(ColNum,If(Val<=(Year(Now())-2017),Collect(colYears,{Years:Year(Now())-Val})))
where 2017 - can be replaced by the data (numeric) that user enters
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.