Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, my skills at DAX if statements are proving atrocious so any help is much appreciated.
I am trying to create a measure that simply calculates if the count of referral leads is > 0 and the count of activities relating to that referral is blank, to then mark true or false (the idea being to eventually highlight leads that have had no activity).
The formula i have written seems to kind of work but it is still marking a zero against accounts with no activities against them. Any idea what ive done wrong?
No Activity Check =
SUMX(
C4C_Referral_Leads,
IF(
DISTINCTCOUNT( C4C_Referral_Leads[Lead ID] ) > 0 &&
DISTINCTCOUNT( MergedActivities[Activity ID] ) = BLANK(),
1,0))
Solved! Go to Solution.
[No Activity Check] =
if(
NOT( ISEMPTY( C4C_Referral_leads) )
&&
ISEMPTY( MergedActivities ),
1
)
[No Activity Check] =
if(
NOT( ISEMPTY( C4C_Referral_leads) )
&&
ISEMPTY( MergedActivities ),
1
)
User | Count |
---|---|
17 | |
17 | |
14 | |
13 | |
13 |
User | Count |
---|---|
17 | |
14 | |
13 | |
10 | |
8 |