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: 
MEBG93
Creator
Creator

Is there a way to insert an 'OR' condition in a 'Group by' statement?

Hello!

I was wondering if there is a way to insert an 'OR' statement in a 'Group by' statement.

E.g.

load * inline [

name, location, team

a, london, red

b, london, green

c, manchester, red

d, london, blue]

group by

team = 'red'

or

team='blue';

 

Thanks!

Labels (1)
2 Replies
naumanshah
Contributor III
Contributor III

'Group by' is typically used in conjunction with aggregation functions like SUM/AVG etc. When you are using load * inline then you don't need to group by the data.

sunny_talwar

What output are you looking to see?