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 August 31st. Request your voucher.

Reply
Wicak
Helper I
Helper I

COUNT VALUE BASED ON OTHER TABLE

Wicak_0-1646727561697.png

Wicak_1-1646727603737.png

I have Four tables related to name, i want to count names in Table D. i try model measurement but it's so complecated and one by one. is there way to simplfy measurement with DAX or pivot table or other way

please your advice. Thank's  😊  

 

2 ACCEPTED SOLUTIONS
BeaBF
Super User
Super User

@Wicak Hi!

I didn't understand, what would be the result you want to achieve? Can you show me?

BF

View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @Wicak ;

 

As amitchandak said, you could unpivot in power query first.

1.unpivot three table and select all column.

vyalanwumsft_0-1646980087354.png

2.append table.

vyalanwumsft_1-1646980141984.png

The final output is shown below:

vyalanwumsft_1-1646980712203.png

3.add table in desktop and count of it.

vyalanwumsft_0-1646980684620.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @Wicak ;

 

As amitchandak said, you could unpivot in power query first.

1.unpivot three table and select all column.

vyalanwumsft_0-1646980087354.png

2.append table.

vyalanwumsft_1-1646980141984.png

The final output is shown below:

vyalanwumsft_1-1646980712203.png

3.add table in desktop and count of it.

vyalanwumsft_0-1646980684620.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thanks for your sharing 😊

amitchandak
Super User
Super User

@Wicak , Unpivot the first three table to get the name column from member 1, member 2 etc

 

Then create a common name dimension

 

Name =distinct(union(distinct(Table1[Name]),distinct(Table2[Name]),distinct(Table3[Name]),distinct(Table3[Name])))

 

Join it with all four tables and now you can do analysis together

 

https://radacad.com/pivot-and-unpivot-with-power-bi
Append : https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
BeaBF
Super User
Super User

@Wicak Hi!

I didn't understand, what would be the result you want to achieve? Can you show me?

BF

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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