0

Sorting Count

Hello,

I would like to count how many times a product group is used in all sales lines. Afterwards sort by high to low and only show top 2.

nav table "product group"
Code
TABLE
CHAIR
BENCH

nav table "sales line"
SO.                    PRODUCT GROUP CODE
sales order1      CHAIR
sales order2      CHAIR
sales order3      BENCH

I would like to achieve:
#1  CHAIR
#2  BENCH


not working for me:
=NL("Rows";"Product Group";"Code";"DataSource=";"Navision 2009 Live";"Company=";"Company A";"-=NL(""Count"";""Sales Line"";;""Product Group Code"";NF(;""Code""))";"*")

Can someone help me in the right direction?

1 comment

Please sign in to leave a comment.