Using an Excel xlsx file with 50k+ rows exported from elsewhere. Trying to deal with nulls in msquery I have tried CASE statements with every combination I could imagine (and I am pretty sure it was not the syntax that was the problem) these are pretty simple statements
I am concatenating dimensional measurements to display a string for labels. for instance...
'H: '+xtract.Height+' x W:'+xtract.Width AS [Dimensions]
nulls cause a failure in every type of CASE statement I have tried and just did not work.
What surprised me was that I could use the '&' as a concatenator rather than '+' which can be used in Excel formulas and prepend an empty string to get the CSTR function to work here.
'H: '+CStr(''&xtract.Height+' x W:'+CStr(''&xtract.Width ) AS [Dimensions]
If this was all conventional SQl syntax it would be fairly straight forward, but it seems MSQUERY has peculiar syntax that allows me to solve the issue this way.
This is an infrequent task, so I am not so concerned with performance. This works.
So I am torn between moving on, and spending time insisting on a CASE statement that I can never get the syntax correct for when this works.
Are there other problems with this approach I am missing?