This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I have two tables, a student table and a family table.
The student table is as follows, where Student ID is the primary Key.
| Student ID | FamilyID |
| 1 | F001 |
| 2 | F002 |
| 3 | F003 |
| 4 | F004 |
| 5 | F001 |
The Family table is as follows, where many family members may belong to the same family ID..
| FamilyID | Member | Phone |
| F001 | Dad | 016-456-89876 |
| F001 | Mom | |
| F001 | Uncle | 676-876-98543 |
| F002 | Dad | |
| F002 | Mom | 412-562-88765 |
| F003 | Dad | 416-542-86758 |
| F004 | Dad | 416-592-86988 |
I need to find the list of pupils for whom any of the family member's phone no is missing. I'm using a direct query which makes creating Calculated columns and using calculate function difficult.
I need a final output of something similar to
| Student ID | column |
| 1 | 1 |
| 2 | 1 |
| 3 | 0 |
| 4 | 0 |
| 5 | 1 |
Can anyone help me with this?
Thanks in advance.
Solved! Go to Solution.
First check the data type of Phone column in the query editor to ensure that the blank field is null.
Then create a measure like below:
Measure 2 = COUNTROWS(FILTER(Family,ISBLANK(Family[Phone])))+0
First check the data type of Phone column in the query editor to ensure that the blank field is null.
Then create a measure like below:
Measure 2 = COUNTROWS(FILTER(Family,ISBLANK(Family[Phone])))+0
Hi @Anonymous
You need a calculated column in DAX, right? this table is called Table1, your other table is called Table2 in my sample
Column =
VAR CurFamilyID=Table1[FamilyID]
VAR T1=CALCULATETABLE(Table2,Table2[FamilyID]=CurFamilyID)
RETURN
COUNTROWS(T1)-COUNTROWS(FILTER(T1,[Phone]<>BLANK()))
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 25 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 26 | |
| 20 | |
| 19 |