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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.