If you are talking about Qlik Sense, that would normally require to use set expression or if-statement in your Dimension or Measures. Best practice is to have them as separate master items.
Measures would look like:
Dimensions would look like:
If(WildMatch([Code], '15*'), [Code], Null())
In QlikView you can have on-sheet-land trigger.
I hope that helps!