I am using a business application that exports .xls data files for analysis. I want to import these into Excel using PowerQuery.
There is a hierarchy to the data, but it is signified only by the indent of the first column. There are no leading zeros or other characters.
Powerquery M doesn't seem to have a function to return the indent level.
Other approaches I've found rely on counting leading zeros, but that won't work for me.
Along the way, I have written a simple Excel custom function using the Cell.IndentLevel attribute works well enough, but I'd like to get PowerQuery to do this so there is just one import code.
Q: Can Powerquery access the Excel cell.indentlevel value? Or can it execute a custom Excel function? How else might I approach this?


