Forum Discussion
koorosh
Post Partisan
2 years agocount back slash
Hi Everybody, I have a table with a column "folder path". It has values like the following:(examples) C:\koorosh\apple\documents C:\mac\user C:\iphone\data\package\app I want to find the numbe...
- 2 years ago
Easy enough,
Greg_Deckler
Community Champion
2 years agokoorosh Also, your orginal formula has 2 syntax errors in it, here is the correct version:
List.Count(Text.Split([folder path],"\"))
M is case sensitive so Text.Split, not Text.split and you ended your Text.Split early with an errant )
koorosh
Post Partisan
2 years agoHi Grep, please check the above result!
- Greg_Deckler2 years ago
Community Champion
koorosh Simple fix, just subtract 1:
List.Count(Text.Split([Column1],"\")) - 1- koorosh2 years ago
Post Partisan
Thanks Greg. I knew simple fix . I just let you know the result