Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Categorize a field based on multiple lines

Hello everyone I need your support, I have to do the categorization of a ballot, which can bring several products that can be of different categories, such as pharma, bycp, wellnes. What I need is...
  • amitchandak's avatar
    4 years ago

    Syndicate_Admin , Create a new column like


    New column =
    var _cnt = calculate(distinctCOUNT(Table[Category_COMERCIAL]), filter(Table, [ORDEN] =earlier([ORDEN]) ))
    return
    if(_cnt =1, [Category_COMERCIAL], "Mixed")