Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Power query losing calculated data after merging queries

How do I troubleshoot the cause of data disappearing after merging two queries? (one of which has been merged with a third query).

 

The data types are accurate before and after the merge, and there are no null values lurking in the shadows. I've unhidden all columns and carried them over in the merge, in case there was some dependency I don't know about.

 

The two problem columns have static data from the source table and before the merge there are an expected number of distinct values in each column. After the merge, one column has only 1 distinct value and the second column has twice as many as before the merge.

 

before:

amyfb_0-1649340367594.png

after:

amyfb_1-1649340399740.png

 

there are very few applied steps on either query:

amyfb_2-1649340628844.pngamyfb_3-1649340646481.png

 

this is the join statement:

amyfb_4-1649340733304.png

 

this is the first query that had a merge of its own, before merging with the salesinput25 query noted above. Is this merge possibly getting in the way somehow?  (it does not have the problem columns, those come from the salesinput file)

amyfb_5-1649340956504.png

 

i'm really baffled on this and welcome any ideas for how to resolve this.

 

thanks!

amyfb

  • Update: I found an article discussing the troubles caused by merging on text fields. (of which there are two in my join).

    I applied TRIM and CLEAN to the joined text fields and all my data is now showing up in the merge. just as i wanted.

     

    Hope this helps anyone else.

     

    cheerios

1 Reply

  • Update: I found an article discussing the troubles caused by merging on text fields. (of which there are two in my join).

    I applied TRIM and CLEAN to the joined text fields and all my data is now showing up in the merge. just as i wanted.

     

    Hope this helps anyone else.

     

    cheerios