Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hey all, I'm trying to only count the number of "contact_no" where any of the actions (they all start with "C200" ) appear within that record.
If it doesn't contain any "C200" I dont want it to count them.
Solved! Go to Solution.
Hi @Dan492813
Please try
Count stage 2 =
SUMX (
VALUES ( hgmcntct[contact_no] ),
IF (
NOT ISEMPTY (
FILTER (
CALCULATETABLE ( VALUES ( hgmcntac[action_cd] ) ),
CONTAINSSTRING ( hgmcntac[action_cd], "C200" )
)
),
1
)
)
Hi @Dan492813
Please try
Count stage 2 =
SUMX (
VALUES ( hgmcntct[contact_no] ),
IF (
NOT ISEMPTY (
FILTER (
CALCULATETABLE ( VALUES ( hgmcntac[action_cd] ) ),
CONTAINSSTRING ( hgmcntac[action_cd], "C200" )
)
),
1
)
)
You're a star tamerj1 as always.
User | Count |
---|---|
54 | |
22 | |
19 | |
16 | |
11 |
User | Count |
---|---|
81 | |
55 | |
40 | |
19 | |
12 |