It's a app where you submit a request in a Power Apps form.
Once you have submitted it, there's a page in the app where you can view your request (so, in view mode).
For each and every request created, I need to add a different ID, an identifier. And it should look like this: "2023-1" for the first request creates. "2023-2" for the second one, etc.
With this formula, in default property, I was able to make it happen:
Concatenate(Year(Today()), "-", Text(CountRows(Filter('SharePoint List', Year(Created)=Year(Today())))+1))
My problem is that, when checking the created request, in View mode, the ID appears differently.
So, if I create the first request, I can see when creating it, that's the "2023-1". But, after saving/submitting it, in View mode, I see the ID as "2023-2", and not "2023-1". "2023-1" should be the correct, as this was the first request I`ve created.
Please, let me know if I was not clear, and thank you very much for your replies !!