Hi @Veronica,
What do you mean by "Type" table? From your formula I understand that you have an Office365 Users connection in this app, but is this Type table another data source? If so, please tell what is this connector.
My understanding so far is that you need the number to be like:
Dropdown1.Selected.Value+"-00X"
If so, then you just need to follow below steps:
1. Set below formula in the OnVisible property of the screen:
Set(Test1,"001");Set(Test2,"001");Set(Test3,"001")
2. Set below formula in the OnSelect property of a button control:
If(Dropdown1.Selected.Value="OPM",UpdateContext({Test1:Test1+1},Dropdown1.Selected.Value="XX",UpdateContext({Test2:Test2+1},Dropdown1.Selected.Value="XXX",UpdateContext({Test3:Test3+1}))
3. Set below formula on the Text field of the label control that you want to show the required number:
If(Dropdown1.Selected.Value="OPM",Concatenate("OPM",Test1),Dropdown1.Selected.Value="XX",Concatenate("XX",Test2),Dropdown1.Selected.Value="XXX",Concatenate("XXX",Test3))
Regards,
Mona