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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Doubt in Where and Group by

Hi All,

Could some one help yesterday one interview i face this question

is it possible to use group by and where clause function in one statement

Thanks In Advance

Niranjan

1 Solution

Accepted Solutions
MayilVahanan

Hi

Yes.

Ex:

Test:

Load * Inline

[

Year, Value

2007,4

2007,5

2008,5

2009,2

];

Load Sum(Value) As TValue, Year Resident Test Where Year = 2007 Group by Year;

DROP Table Test;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

Hi

Yes.

Ex:

Test:

Load * Inline

[

Year, Value

2007,4

2007,5

2008,5

2009,2

];

Load Sum(Value) As TValue, Year Resident Test Where Year = 2007 Group by Year;

DROP Table Test;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable

Definately Yes,

Example

Load Month,Year,Sum(Sale) as Sale

from Sales

where match(Year,2012,1013)

group by Month,Year;

Regards

Nitin

NavinReddy
Creator II
Creator II
Author

HI Guys

Thanks for your valuable information