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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JIED
Frequent Visitor

How to create measure for 1-1 relationship

Hello,

 

Please helo me 🙂

 

I am new to PowerBI

 

I get this 2 tables, they are 1-1 relationship by ID2.

ID2 is the sub Id of ID1.

 I want to get the count of category by ID1.

JIED_1-1647591525846.png

 

 

How do I write the measure ?

 

Many thanks in advance for your help!

 

How to create measure for 1-1 relationship 

1 ACCEPTED SOLUTION
eshwarramesh97
Frequent Visitor

@JIED  no dax is needed for this just drag table 1 id1 on row of matrix and table 2 category on column of matrix and in values drop id2 of any table and select as count

View solution in original post

3 REPLIES 3
eshwarramesh97
Frequent Visitor

@JIED  no dax is needed for this just drag table 1 id1 on row of matrix and table 2 category on column of matrix and in values drop id2 of any table and select as count

amitchandak
Super User
Super User

@JIED , Create a matrix ID1 from Table 1 and Category on the column from Table 2. And count of id 2 in values

@amitchandak Thank you for providing your answer!

Could you please kindly provide the DAX example please?

I appreciate your help!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.