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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

If column A has same column B, create new table that gives list of column A that had the same column

I suspect this may have to be done in powerquery

 

I currently have

a       b

1x
1y
2x
2z
3z
3w

 

and would like to create a new table that looks like this

                     

1

2
21
23
32

 

I would appreciate any assistance on this, thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below to get it, please find the details in the attachment.

yingyinr_0-1647587801116.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below to get it, please find the details in the attachment.

yingyinr_0-1647587801116.png

Best Regards

amitchandak
Super User
Super User

@Anonymous , The value of 2 as 1 and 3 does not seem fine to me.

 

Group by in power query you can try

 

https://docs.microsoft.com/en-us/power-query/group-by

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors