How do we know in which screen we are in
when we are going to create a page numbers in the power apps , it depends on the selection of dropdowns
use this below given function
If('Dropdowntype'.Selected.dropdown name = "dropdown selected value", Set(CountPages, 11), Set(CountPages, 10));
SET(PGNO, 2)