Forum Discussion

Phantom25472's avatar
Phantom25472
New Member
3 years ago
Solved

Expanding tables varies each time

Hi,   In PBI we import a xml-file, trough a Power Query we setup some colums filled with data. Some columns need to be expanded, because they are tables.   The next times we import the same xml-...
  • BA_Pete's avatar
    3 years ago

    Hi Phantom25472 ,

     

    Power Query doesn't "decide" anything. It does what you tell it to do upon the data that you provide.

    So, there's two places to look for a resolution:

     

    -1- What you've told it to do:

    You've told it to expand table columns. This appears to be a legitimate request and I assume you used a button in the GUI to tell it to do this, therefore I will assume that the code is also correct. So probably not the issue.

     

    -2- The data you've provided:

    It sounds as if the data that is being provided to Power Query is not consistent in its nesting of tables.

    Check the data as soon as the nested table column comes into PQ, before any steps are performed on it, to see whether any values in your nested table column aren't actually nested tables at all, but maybe 'null', a scalar value, or maybe a list or record. Based on the limited info I have available, this would be my guess as to where the issue is.

     

    Pete