Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |