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