Forum Discussion
Clean and Trim
- 5 years ago
Hello flinch
I've tried some experiments with your data, but no way that I was able to no join them. Here the code if somebody want to try.
And so you are saying that exactly this 2 rows in your final table didn't join?
let Table1 = let Source = #table ( type table [Column1 = number, Column2 = text, Column3 = text, Column4 = text, Column5 = text, Column6 = text, Column7 = text, Column8 = text], { {"1105","BP01","BALL POINT PEN (EACH)","C","STATIONERY LOCAL","","0","No"} } ), Transform = Table.TransformColumns ( Source, { { "Column2", each _, type number } } ) in Transform, Table2 = let Source = #table ( type table [Column1 = datetime, Column2 = datetime], { {"BP01","1.095.944.348"} } ) in Source, Join= Table.NestedJoin ( Table1, "Column2", Table2, "Column1", "tbl2" ) in Join
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
it is not that, by chance, when you point to the tables to merge, you refere to the "wrong" steps: someone precedes the one in which you did cleaning?
could you show the content of the advanced editor of your queries?
- flinch5 years agoHelper I
Hi Rocco,
This is what I think is the issue as well. It seems to be merging the queries at a time when the cleaning and trimming doesn't appear to have happened yet. This is why I have ended up with clean and trim statements all over the show! I presume a query runs all the steps in the panel on the right, before it is then pulled across to merge with another query?
But I've got clean and trim statements everywhere now, and it still isn't coming right.
I will try post some more detail as per Jimmy's reply shortly.
- flinch5 years agoHelper I
Oh man, suddenly it's working. Cleaning and trimming in all the wrong places it would seem.
Thank you for the asistance all. I'm not sure exactly what the issue was, so hopefully it doesn't repeat!
- edhans5 years agoCommunity Champion
Can you please mark one or more answers here as the solution so this thread can be shown to be solved flinch and give Kudos (thumbs up) to all who helped?
I came in here to see if you had checked for ASCII char 160 which is a non-printing space used sometimes that can cause issues, but you seem to have your query working now.