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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
NithinBN
Helper II
Helper II

DAX measure for multiple Table

Hello All, 

 

I have a 3 Table, 

Table1                        Table 2 

NithinBN_0-1677864906746.pngNithinBN_1-1677864929365.png

Table 3

NithinBN_2-1677864972532.png

and its relation is like this: 

T1 (ID)<-->T2(ID)

T2(Ref)<-->T3(ID)

NithinBN_3-1677865026039.png

How can i get 

1)Count of T1, having a refresence in T3 of Type:B

2)Count of T1 without link to T3

 

 

3 REPLIES 3
andhiii079845
Solution Sage
Solution Sage


1) 

Measure =
CALCULATE(count(t1[ID]),FILTER(t3,t3[Column1]="b"))
2) 
Measure =
VAR _tab = SUMMARIZE(t1,t1[ID],"flag",IF ( t1[ID] IN DISTINCT (t3[ID]), 0, 1 ))
RETURN sumx(_tab,[flag])




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

Proud to be a Super User!




Measure 2 returns values as 6, but it should show 2, Only 4 and 6 doesnot have link to T3

 

My model has the relations via the ID fields. Now I see you us REF for table t2, t3. Than i have to mix it





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

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors