-- my DAX formula is unable to count the occurrences of a "," (comma) in a string from Column2, in a specific "Category" row. --
Formula = CALCULATE( COUNTAX( FILTER ('Query1', 'Query1'[Col1] = "Category", 'Query1'[Col2] = ",") ) )
-- Any suggestions? --
You can use the following coulmn calculation to count the number of comma in a string:
Check = LEN(Query1[Col2])-LEN(SUBSTITUTE(Query1[Col2],",",""))
If you need the overall count, you can simply sum up the calculated field. Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With