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 Fabric community.
I have had a search around and found partially the solution but I am having trouble excluding empty cells on the following count.
They say 1 photo is 1000 words so here is the problem with attached DB
- I am using the following measure but null values are counted as "1!
DoA_Individual_Count =
SUMX(
'test',
LEN('test'[Approved_Actions])
-LEN(
SUBSTITUTE(
'test'[Approved_Actions],
",",
""
)
)+1)
Any ideas?
User_ID Approved_Actions Count_of_approved_Actions
1 a 1
2 a,b 2
3 a,c 2
4 b,c,d 3
5 d 1
6 a 1
7 "0" or "null"
8 d 1
9 "0" or "null"
10 "0" or "null"
Solved! Go to Solution.
Hello @IoannisT ,
Please change your measure as below:
DoA_Individual_Count =
IF(MAXX('Table','Table'[Approved_Actions])<>BLANK(),
SUMX(
'Table',
LEN('Table'[Approved_Actions])
-LEN(
SUBSTITUTE(
'Table'[Approved_Actions],
",",
""
)
)+1),0)
Output looks as below:
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
Hi @IoannisT ,
You can produce your required output in the following manner by tweaking your formula.
I attach a pbix file as an example.
Hi @IoannisT ,
You can produce your required output in the following manner by tweaking your formula.
I attach a pbix file as an example.
Thank you very much. Wordek like a charm
Hello @IoannisT ,
Please change your measure as below:
DoA_Individual_Count =
IF(MAXX('Table','Table'[Approved_Actions])<>BLANK(),
SUMX(
'Table',
LEN('Table'[Approved_Actions])
-LEN(
SUBSTITUTE(
'Table'[Approved_Actions],
",",
""
)
)+1),0)
Output looks as below:
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
Thank yo uso much. It works!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
100 | |
72 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
62 | |
44 | |
41 |