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
nkurian
Frequent Visitor

Count from related Table including 0 for non-existence

Hi,

 

I have 2 tables - Courses and Enrolments. I have built a relationship between the 2 tables based on Course Column and I have a measure on enrolments table to give me the count of enrolments. So, if I pick Course from Courses tables and the measure for Enrolments from Enrolments table, I will get the list of courses and the count of enrolments provided there are any enrolments for the course. I need to get a list that will include all the courses from Courses table and have 0 on the count of enrolments if there are no enrolments for the course.

Counts from related table inlcuding 0 for non-existence.PNG

Please help!

Thanks,

Ninu

 

2 ACCEPTED SOLUTIONS
OwenAuger
Super User
Super User

Hi @nkurian

 

Simply add "+0" to the end of your existing Enrolment Count measure.

 

Cheers, Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

Thanks @OwenAuger. That was brilliant!

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi @nkurian

 

Simply add "+0" to the end of your existing Enrolment Count measure.

 

Cheers, Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Thanks @OwenAuger. That was brilliant!

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.

Top Solution Authors