Forum Discussion

automated_user's avatar
automated_user
Frequent Visitor
4 years ago
Solved

Sum total occurrences of each value in a string using Power Query

Hello,  I was wondering if there is a way to sum the total occurrences of each value appearing in a string in a column called PseudoNo as show below: As an example for the one highlighted in ...
  • v-jingzhang's avatar
    v-jingzhang
    4 years ago

    Hi automated_user 

     

    I assume that you have a column which contains unique values in the table e.g. OrderID, SellingID.... If not, add an Index column to the table first. 

     

    Select PseudoNo column, split it by delimiter into Rows

     

    Group by the Index column (or the unique key column) and PseudoNo column like below. 

     

    At last add a custom column to multiply two columns. 

     

    Sample file is attached at bottom. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.