cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
nkurian Frequent Visitor
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

Accepted Solutions
Super User
Super User

Re: Count from related Table including 0 for non-existence

Hi @nkurian

 

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

 

Cheers, Owen



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




nkurian Frequent Visitor
Frequent Visitor

Re: Count from related Table including 0 for non-existence

Thanks @OwenAuger. That was brilliant!

2 REPLIES 2
Super User
Super User

Re: Count from related Table including 0 for non-existence

Hi @nkurian

 

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

 

Cheers, Owen



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




nkurian Frequent Visitor
Frequent Visitor

Re: Count from related Table including 0 for non-existence

Thanks @OwenAuger. That was brilliant!