Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi folks,
Is there an efficient Dax formula I can use to count the number of occurences of a particular special character in a column based on conditions? The column looks something like this:
| Column A |
| Bill Murray |
| John Doe; Joe Biden; Bill Gates |
| Mark Twain; Paul Bunyan; Jack Black |
| Stevie Wonder; Erica Karros |
Due to the presence of the occasional blank cell, I need ensure that only cells with characters in them are counted, which led me to COUNTA() (not every cell has as a delimiter next to a user's name (e.g. if only one user is listed)). The logic I was considering involved firstly testing to ensure the cell wasn't blank, and then I needed to start counting the number of delimiters in each row with a base count of 1 (again to account for cells with text in them, but do not contain the delimiter in question). Hope that makes sense and appreciate the help, particularly if there's an easier way to do this. I didn't want to unpivot the column and count that way in Power Quert since the table is already too big.
Best,
pbrenneise
Solved! Go to Solution.
@Anonymous Try:
Column = LEN([Column A]) - LEN(SUBSTITUTE([Column A],";",""))
That helped - appreciate the assistance!
@Anonymous Try:
Column = LEN([Column A]) - LEN(SUBSTITUTE([Column A],";",""))
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 18 | |
| 14 | |
| 9 | |
| 8 | |
| 8 |