Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am using this DAX expression from the thread below as suggested.
https://community.powerbi.com/t5/Desktop/Count-no-of-comma-occurrences-in-a-column/m-p/79183#
DAX for calculated column:
Server Count = LEN(Servers[servernames])-LEN(SUBSTITUTE(Servers[servernames],",",""))+1
This works well but the column I am working on has null values and the count for them is showing as "1" as well. Is there a sightly different DAX expression where the count of the null values is zero? Any solution would be helpful
Thanks
Sridhar
Solved! Go to Solution.
@Anonymous
Hi, try with:
Server Count = IF(Servers[Servernames]<>Blank(),LEN(Servers[servernames])-LEN(SUBSTITUTE(Servers[servernames],",",""))+1,0)
Regards
Victor
@Anonymous
Hi, try with:
Server Count = IF(Servers[Servernames]<>Blank(),LEN(Servers[servernames])-LEN(SUBSTITUTE(Servers[servernames],",",""))+1,0)
Regards
Victor
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |