Forum Discussion
Numbers from custom column not usable
- 4 years ago
Ok. So the PBIX you've provided doesn't exactly match the one in the video.
When I opened the PBIX, I noticed straight away that your [algorithmCalcDuration] field in the Data view was empty, suggesting that this data is not actually leaving Power Query and getting to the data model:
Based on this finding, I looked into the key fields used for the merge, as it appeared as though the merge hadn't actually completed. I found that your text casing between Query2[id] and algorithmExecutionTimes[planningGuid] did not match i.e. [planningGuid] was lower case and [id] was upper case.
I added a step into algorithmExecutionTimes to make the [planningGuid] upper case:
= Table.TransformColumns(chgTypes,{{"planningGuid", Text.Upper, type text}})I was then able to produce this:
Power Query/M code is ENTIRELY case sensitive, both in it's code and the values that it handles. By matching the text cases between the two ID columns, Power Query now recognised them as matching values and was able to complete the merge.
PBIX attached with working output.
Pete
Awesome, thanks! I was neither aware of the case sensitivity nor that the merge didn't take place properly (because the preview showed the results of the merge).e
Thanks for your patience with this issue!
No problem, glad we got there in the end.
I knew it would be something really simple, but also very difficult to see without having the actual PBIX to play with.
Have a great weekend 🙂
Pete