Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Automatically include new Columns in Dataset

I am maintaining a PowerBI dataset which basically reads columns from SQL tables. I use SELECT * FROM [TABLE] in source query, so all columns from the table are included. Once I publish the .pbix, ot...
  • SivaMani's avatar
    4 years ago

    Anonymous, The refresh that you referred to is DATA Refresh. It will only fetch the data from your source. It won't add new columns. For any structural changes or metadata changes, you have to refresh it in Power BI Desktop and publish it.

  • nickyvv's avatar
    4 years ago

    Hi Anonymous,

    good question. As SivaMani mentioned this is not supported out-of-the-box.

    However, you can work around it if the source is supporting that:

    • In this blog post, Marc shows how to get columns dynamically when working with SharePoint files
    • In this blog post, Erik shows how to expand columns dynamically when working with SQL

    While I don't think this works directly with your example, you might wanna read those and try to make it work with your example.

     

    Furthermore: did you have a read on the Limitations and issues with native database queries (Like writing your SELECT * statement)?