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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
NithinBN
Helper II
Helper II

Count value between 2 tables

Hello,

I have a student and dept table like this having cordinality (1 to *), meaning a student can be part of multiple department. 

NithinBN_0-1674183228954.png

How can I find out which all students are linked to a department(count students having link\registered  to department )

 

Thanks you!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NithinBN , Use these measures to find students not linked. Plot M2 with Student name

 

M1= Countrows([Department])

 

M2= Countx(Values(Student[ID]), if( Isblank([M1]), [ID], blank()) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@NithinBN , Use these measures to find students not linked. Plot M2 with Student name

 

M1= Countrows([Department])

 

M2= Countx(Values(Student[ID]), if( Isblank([M1]), [ID], blank()) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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