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'
not by value, the flag should be based on ID
Ex: 500001 is High, 500002 is low
If(Min(Value='AA'),'High','Low') as Flag
Group By ID;