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
Anonymous
Not applicable

Table showing item w/o data in many-to-many relationship

Hi all,

 

I've have to 2 tables in many-to-many relatioship. I'd like to create a table that count the total number of customers showing item with no data

 

desidered Output 

 

ClienteCount
x2
blank2

 

Input

Table anag:

ClienteSpec
1a
1b
2a
3b
3c
4d

Table lb:

ClienteLB
1x
1y
2x
3y
3z

key: cliente

 

Suggestions?

 

Many thanks.

a.

1 ACCEPTED SOLUTION

Column = IF( 'Table2 lb'[LB] = "x", "x", BLANK())

Untitled.png

View solution in original post

3 REPLIES 3
mussaenda
Super User
Super User

May I know why the count for x 2 and for blank is also 2 and why in your desired output, Cliente has x but your x in the table is in LB column.

 

Please explain further

Thank you!

Anonymous
Not applicable

thanks for your interest

 

count distinct=2 when lb=x

count distinct=2 when lb<>x

 

The total number of customers in db is 4 (table anag).

 

a.

 

Column = IF( 'Table2 lb'[LB] = "x", "x", BLANK())

Untitled.png

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.