Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have 2 tables, table 1 has an ID column which has relationship (1-to-1) with table 2, where all ID's are stored from all kinds of other tables (not only table 1). Table 2 has also a column with the value yes/no. I need the write a measure which counts the ID's from table 1 on how many yes or no are in table 2? Hope someone can help me out.
Table 1
ID
1
2
3
Table 2
ID yes/no
2 y
3 n
4 n
Solved! Go to Solution.
@Anonymous
measure =
CALCULATE (
COUNT ( tbl2[id] ),
FILTER ( VALUES ( tbl[yes/no] ), tbl[yes/no] = "y" )
)
@Anonymous
measure =
CALCULATE (
COUNT ( tbl2[id] ),
FILTER ( VALUES ( tbl[yes/no] ), tbl[yes/no] = "y" )
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.