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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Mnisar17
Frequent Visitor

How to distinctly count the total Members from 2 different datasets

Hello Everyone,

 

I'm working on 2 different datasets or tables and have uploaded the data tables on the power BI for creating the relation among the tables which have some similar columns and the data is partly connnected to each other. Though the relationship is created as Many to Many because the data is not completely similar and both tables has some of their own unique values too.
Example

Mnisar17_2-1703105124497.png

Table 1

 

Mnisar17_1-1703104609430.png

Table 2

 

 

Here are 2 different tables and the columns which I want to append into a new or merging the columns or the tables from a lot more different column names ( any walkaround would work). So here we can see that the member IDs are somewhat similar but some are unique on its own. I want to append or merge both the columns and create the relation among the tables in order to create the dashboard. Also, additionaly, I want to get a distinct count of the member IDs in order to get the total members from both the tables. My main goal is to create a relation between the 2 tables in order to create the dashboard. Any help is appreciated. Thank you in advance.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Mnisar17 ,

Try appending a query to both tables in PowerQuery.

vcgaomsft_0-1703731095167.png

Then distinct the table:

vcgaomsft_3-1703731248768.png

Output:

vcgaomsft_1-1703731181275.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Mnisar17 ,

Try appending a query to both tables in PowerQuery.

vcgaomsft_0-1703731095167.png

Then distinct the table:

vcgaomsft_3-1703731248768.png

Output:

vcgaomsft_1-1703731181275.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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