Power BI: count number of characters/letters/words using a column
This is how I count the number of characters, letters and/or words using a column.
Let´s start by the easier ones which are characters and words. Just click on “new column” and put this formula for characters:
LEN([argument])
And for words, do the same thing and put this formula:
var wcount = LEN('table'[argument]) var commt = SUBSTITUTE('table'[argument]," ","") return (wcount - len(commt))+1
Now for counting only letters without digit, click on “home -> transform data -> transform data”:
Then on “add column -> custom column”:
Put this formula:
Text.Length(Text.Select([argument], {"a".."z"}))
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...