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

Expression of Straight Table

Hi,

How can we apply group by in expression?

Thanks

1 Solution

Accepted Solutions
5 Replies
PrashantSangle

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
Master III
Master III

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