Forum Discussion
Merge by condition and approximate matching in Power Query
"Too long - yes, I mean the number of steps."
So your problem is not the execution time, but the code size !?
In this case, wdx223_Daniel's solution (which could also be reduced by eliminating a redundant instruction and, if your db is sorted, eliminate two steps) seems to me to be right for you.
Dear Anonymous ,
the wdx223_Daniel 's solution seems to be the best, but how I answered to the wdx223_Daniel 's message, there is a minor problem, which time to time results in an error.
Yesterday, at home I tried the code, it worked. Today at the office, it didn't. I was trying to find out, what is the reason. The only difference I have found, is date format.
Data format:
Home PC - dd.mm.yyyy
Office PC - dd/mm/yy
I guess, at office, this code change days' and months' places and results in an error.
If you, or wdx223_Daniel help me, to correct the code, which will work with both formats, I will be grateful.