Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago

Not all columns expanding because first 1000 fields are null

Wondering if there is a way to expand ALL columns from a Json.Document(Web.Contents...) => Table.FromList source when some columns don't have data in the first 1,000 rows. 

 

I'm aware of methods such as typing in all the known columns manually, or sorting my data, but I'm hoping there is something that is a little more robust and can accommodate column changes/additions.

 

We have 40+ columns being pulled in and about 1/4 of them may have 1,000+ rows consecutively without data. So those columns are being ignored,

11 Replies

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous,

     

    I didn't see the limitation in Table.FromList() restrict blank columns. Regarding your question, would you please share some sample data from our to test?

     

    Best Regards,
    Qiuyun Yu

    • kunaly's avatar
      kunaly
      Regular Visitor

      v-qiuyu-msft

       

      Hi Qiuyun Yu,

       

      we are facing the same problem in querying data from Marketo using REST API.  If the first few records in a column return NULL, the entire column is droppped without any warning.

       

      As Anonymous mentioned, one work around is to type in all the known columns specifically. However, this presumes knowing what those columns are (which means I need to explore data outside of PowerBI).

       

      Any suggestions on how to prevent PowerBI from dropping columns with partial NULL records.

       

      Thanks,

      Kunal  

  • Anonymous's avatar
    Anonymous
    Not applicable

    I kind of got it to work yesterday. I think it was an issue with the system we are using to connect to data in NetSuite. The rest api we are trying out doesnt return properties for a json object if they are null or 0. So there are instances where we get 1,000 json objects with empty (not included) properties so PBI never sees them.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Sorry but this solution didn't really apply. It was more of an issue with how the API returns zero and null fields.

    • PBILover's avatar
      PBILover
      Icon for Helper V rankHelper V

      can you can you please explain me, how did you handled this situation?

      I am stuck here.

       

    • PBILover's avatar
      PBILover
      Icon for Helper V rankHelper V

      Anonymous 

      Which work around did you implemented for this?

  • I put a parmatised query in the API call to make sure I get a record that isn't null, complete the transformation and then remove the paramatised query from the first step.