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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
lenkanovy
Regular Visitor

Expanding table in Power Query - preview shows correct value, but after expanding its incorrect

Dear comunity, 


I'm merging two tables to get data into first table. When I merge the two tables and click into new column to see preview of which row was mapped to the row, it shows correct value. When I expand the column and choose columns I want to see, the values in row change to incorrect, see screenshots.

Preview mergin tables.png
- preview of data 

Expanded table.png
- after expanding data

Second table.png

- data in second table

So far I've tried: reloading data, creating again tables, changing data format, updating power bi desktop, clearing caches and wirking with it on different device.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Your code seems rather complex.  Can you strip away anything that is not relevant to the issue?

 

Have you considered using lookups via Table.AddColumn  instead of merges?

View solution in original post

6 REPLIES 6
v-achippa
Community Support
Community Support

Hi @lenkanovy,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @lbendlin and @Omid_Motamedise for the prompt response. 

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the response provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @lenkanovy,

 

We wanted to kindly follow up to check if the response provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @lenkanovy,

 

We wanted to kindly follow up to check if the response provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Omid_Motamedise
Super User
Super User

When you expand the merge column, please also consider name and see the result


If my answer helped solve your issue, please consider marking it as the accepted solution.
lbendlin
Super User
Super User

Your code seems rather complex.  Can you strip away anything that is not relevant to the issue?

 

Have you considered using lookups via Table.AddColumn  instead of merges?

Hello,

thank you for this answer. I created two new columns by using

= Table.AddColumn("Table1", "New column name", each let match = Table.SelectRows("Table2", (x) => x[Merged] = [Account number]) in if Table.IsEmpty(match) then null else match{0} [Group name])

and now it's working.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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