Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need help with expression

Hi,

I'm new to Qlikview.

Can someone explain what this Qlikivew statement mean?

AGGR(COUNT({1 <%KEY_CAT = {"$(=CatSel)"}, %KEY_CLINIC = {"$(=ClinicSel)"} >}[PRID]) ,%KEY_CAT, %KEY_FY)

Thanks

5 Replies
Qrishna
Master
Master

Hi Sydney,

AGGR(COUNT({1 <%KEY_CAT = {"$(=CatSel)"}, %KEY_CLINIC = {"$(=ClinicSel)"} >}[PRID]) ,%KEY_CAT, %KEY_FY)


counting all values in the column [PRID] where %KEY_CAT = {"$(=CatSel)"} and %KEY_CLINIC = {"$(=ClinicSel)"}

and then grouping the counted values with respect to  %KEY_CAT, %KEY_FY

hope that helps

Anonymous
Not applicable
Author

Hi Krishna,

Is it the same as this SQL statement?

SELECT

%KEY_CAT,

%KEY_FY,

COUNT(PRID)

FROM XYZ

WHERE %KEY_CAT = {"$(=CatSel)"} and %KEY_CLINIC = {"$(=ClinicSel)"}

GROUP BY %KEY_CAT, %KEY_FY

Qrishna
Master
Master

Exactly.

Anonymous
Not applicable
Author

Thanks for your help!!

Qrishna
Master
Master

Please mark this thread as answered if you got the answer.

Glad i was able to help you.

Krishna