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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Saniat
Helper V
Helper V

Relationships / Cardinality / Cross filter direction in Power BI

Hi,

I have two tables and their relationship is as below:


TEMP_REL.PNG    TEMP_REL2.PNG


Table 1 is my main table, and I am using table 2 as a lookup table to get some additional info about the PN.

My thought was when I apply a slicer, I should use that from table 1, since table 1 is more complete (e.g. there is one record which does not exist in table 2 i.e. PN 117).

But I guess my concept is wrong, as slicing for one country from table 1 still gives me total count for table 2:

Saniat_0-1690485924181.png


Can someone explain what should I do here to get 4 in both CountDistinct_PN ?


Many thanks.

1 REPLY 1
amitchandak
Super User
Super User

@Saniat , Table 1 filter will not filter table 2. SO filter should always come from Table2. The one on one side 

 

To reduce the value in slicer use a measure from table 1(Measure not column) in visual level filter of slicer of table 2 and check for not blank

 

If you want count or table 2 same as table one

 

Countrows(Summarize(Table1, Table2[PN]) )

 

Table 1 has to involved

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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