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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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