0

Simple Group By

On the item table, we have item category code, product group code, and brand code.
To GET unique combinations of items grouped by those 3 fields, we do the following:
B3: NL("ROWS","ITEM","ITEM CATEGORY CODE")
C3: NL("ROWS","ITEM","PRODUCT GROUP CODE","ITEM CATEGORY CODE",B3)
D3: NL("ROWS","ITEM","BRAND CODE","ITEM CATEGORY CODE",B3,"PRODUCT GROUP CODE",C3)

Is there a better way to that, since it looks like it has to iterate three times on the table to get the result.
I tried using simple SQL statement with group by using sql management studio and it took me seconds to get 26,000 lines, but it took me hours using the above jet formulas.

Thanks

4 comments

Please sign in to leave a comment.