March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
How can I find the total number of times a character occurs within a string.
It can be in DAX or M Query
For example I have a column which has values like
JJAAA, JAJAJ, JJJJJ ..etc
Now I want to find number of times character J is present in each string
JJAAA - 2
JAJAJ - 3
JJJJJ - 5
Thanks,
Mannu
Solved! Go to Solution.
Include a column and use the below formula:
NumberofJs = LEN(Table3[StringText])-LEN(SUBSTITUTE(Table3[StringText],"J",""))
Include a column and use the below formula:
NumberofJs = LEN(Table3[StringText])-LEN(SUBSTITUTE(Table3[StringText],"J",""))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |