Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
markgraham123
Specialist
Specialist

Use group by with If condition

Hi All,

I'm trying to create a flag by comparing Req vs actuals:

If Actual is less than Req for atleast 1 SubID - grouped by ID, then 'Check' else 'Good'

Please see attachment.

Any help is highly appreciated.

IDSubIDReqActual
1a10
1b22
2c33
2d44
3e55

Req: O/P;

 

IDSubIDReqActualFlag
1a10Check
1b22
2c33Good
2d44Good
3e55
1 Reply
antoniotiman
Master III
Master III

Hi Mark,

why ID 3 isn't  'GOOD' ?