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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
tyagishaila
Specialist
Specialist

Expression of Straight Table

Hi,

How can we apply group by in expression?

Thanks

Labels (1)
1 Solution

Accepted Solutions
robert_mika
MVP
MVP

5 Replies
PrashantSangle
MVP
MVP

Hi,

Use AGGR()

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
robert_mika
MVP
MVP

tyagishaila
Specialist
Specialist
Author

Hi max,

Thanks for reply,

but please explain more, not clear yet.

Suppose I have following SQL group by query, How it can write as an expression in QV.


select GenericArticle,BU,Department,Stroke,Colour,CW_WHStock,LW_WHStock from dbo.MCStockAvailability

group by GenericArticle,BU,Department,Stroke,Colour,CW_WHStock,LW_WHStock

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Your SQL statement is another way of writing a SELECT DISTINCT. You can also use Distinct in Qlikview like

     Count(Distinct GenericArticle)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable

if u hav month and sales columns....

Aggr(Sum(sales), month) gives mnthly sales which equal to sum(sales ) group by month in sql.....