Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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.