Forum Discussion

11 Replies

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Most Valuable Professional

    Use the following formula in a custom column in Power Query

     

    = List.Count(Text.Split([skills],","))

     

    For DAX

     

    = LEN([skills])-LEN(SUBSTITUTE([skills],",",""))+([skills]<>"")

     

    • AtchayaP's avatar
      AtchayaP
      Helper V

      Actually in excel I can see values but after transforming to pwerbi, it is showing as null.why it is? Is that because of data cleaning is not good.?

    • AtchayaP's avatar
      AtchayaP
      Helper V

      I have used the 1st formula, but it's not counting the exact numbers in cell.i have 5skills in one cell, but it's counting as 7.could you help me

      • Vijay_A_Verma's avatar
        Vijay_A_Verma
        Most Valuable Professional

        Please post your data for me to verify...As long as there are 4 commas to separate the 5 words, it would count 5.