Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GROUPBY without using SUM or COUNT

Hello everybody

Is there anyway in which you can create a Group by, without using SUM og COUNT?

Related to our database and the analytical needs, it could be a needed solution if we could use IF statement, OR statement or even multiplying related to our Group By.

Thanks in advance

/Martin

2 Replies
its_anandrjs

Hi,

I dont think this can done but you can use Order By to order the table by fields or may be sort the table by fields, but if you use SUM or COUNT you do not need to use Group By but if you are using fields in the table then you have to use Group By.

Ex:-

Load

Field1,

Field2,

Sum([Sum Amount]) as Amt

Resident Source

Group By

Field1,

Field2;

Regards

Anand

rubenmarin

Hi, yes, you can do a trick, something like

LOAD Min(Field1) as Field1,

     Field 2

Resident ... Group by Field1, Field2;

As you're grouping by Field1, the Min() has no use but avoids the loading error.