Forum Discussion

Samuel7265's avatar
Samuel7265
Frequent Visitor
3 years ago
Solved

Index Column Groupby() and currentgroup()

Hi all, i have a table with the columns ID and Category.  The goal is to create a new table that lists the IDs, and an index of the number of categorys an ID had in its lifetime.

 

Example:

 

Data Table

ID / Category 

00001 / SWF Info

00001 / Response FOMA

00001 / Creditreform

00001 / Legal IKU

00001 / Bankcrupcy

 

Desiered Result should be:

ID / Index

00001 / 5

 

 

I tried this

 

 

  • some_bih's avatar
    some_bih
    3 years ago

    Hi Samuel7265 I am not familiar with your model, if it is simply like your example with 2 columns, possible solution could be  measeure 

    Index Test = COUNTROWS('Sheet1 (2)')

    Replace Sheet1 (2) with your table name. Hope this help

     

4 Replies