Forum Discussion

baBI123's avatar
baBI123
Helper II
8 years ago
Solved

COUNT WITHIN A CELL

Hello BI community, 

I was wondering if anyone could help me out with COUNTing the number of itms in a cell within a column. 
see attached pic

For example, I need a new colum that would read 

PO COUNT
3
1
10
3
1
1

Thanks in advance!

  • The trick to this is using SUBSTITUTE:

     

    Column = LEN([PO list]) - LEN(SUBSTITUTE([PO list],",","")) + 1

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    The trick to this is using SUBSTITUTE:

     

    Column = LEN([PO list]) - LEN(SUBSTITUTE([PO list],",","")) + 1