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

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.

Reply
Almantas32
Helper II
Helper II

Next Activity Not Assigned

Hey Guys, 

 

I want to count the Leads I entered, that do not have a next activity planned. The problem is that Power Bi only counts the Leads that have an activity assigned. (I guess because the relationship is based on a column in the activity table). But I know I am just missing something. I am ataching the descktop file with an example:

 

https://drive.google.com/file/d/1fcGqvq7e-3C4Ib51YIVACn1SDs2_MoBT/view?usp=sharing

 

Would appretiate very much if someone would help me out. 

 

Almantas 🙂 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Almantas32 , You can add +0 to a measure or use this option to have left join after that you can filter on 0 or blank

ShowItemwithoutdata.JPG

View solution in original post

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hi @Almantas32 ,

If this is your expected output, you can try this measure to count:

tab re.png

Measure = 
VAR _count =
    COUNT ( 'public mail_activity'[id] )
RETURN
    IF ( _count = 0, 0, _count )

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Almantas32 , You can add +0 to a measure or use this option to have left join after that you can filter on 0 or blank

ShowItemwithoutdata.JPG

Hello, again, 

 

and thank you one more time for the help on this question. I have a simple follow up. 

This solution works fine for a table, but I can't display the number with the Card visual. I want to show the count of Leads with no next activities planned in a card visual. 

 

That means I should insert all the conditions in a measure, right? 

 

 

Thank you for a simple answer I can use in the future as well 🙂 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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