If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
Create Flag for ID, If Value contains 'AA' then 'High' else 'Low'
if(value='AA','High','Low')
not by value, the flag should be based on ID
Ex: 500001 is High, 500002 is low
Join (YourTable)
LOAD ID,
If(Min(Value='AA'),'High','Low') as Flag
Resident YourTable
Group By ID;