Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
adam_mac
Helper I
Helper I

DAX IF AND formula between measures

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))

 

adam_mac_3-1626968961155.png

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

[No Activity Check] = 
if(
	NOT( ISEMPTY( C4C_Referral_leads) )
	&&
	ISEMPTY( MergedActivities ),
	1
)

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

 

[No Activity Check] = 
if(
	NOT( ISEMPTY( C4C_Referral_leads) )
	&&
	ISEMPTY( MergedActivities ),
	1
)

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.