10

I have built a powerBI dashboard with data source from Datalake Gen2. I am trying to add new column into my original data source. How to refresh from PowerBI side without much issues or whats the best way to do?

Learner
  • 1,170
  • 11
  • 21
Ajju Bajju
  • 105
  • 1
  • 1
  • 4

3 Answers3

12

You can configure the query so that the number of columns is dynamic by setting Columns=null.

These instructions get you to the same place as @Janzaib's answer, but are more intuitive for me.

  1. In Power BI Desktop, right-click on your dataset under Fields ('VoterList' in this case), and select Edit query:

    data set context menu

  2. In Power Query Editor, select Advanced Editor:

    Power Query Editor

  3. In Advanced Editor, increment the Columns value:

    Advanced Editor showing Columns value

Note: If you increment this value larger than your data set, you will end up with empty columns.

However, if you set Columns=null, then it will import all of the columns found in your source automatically, even as your source changes.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Chris Harris
  • 219
  • 2
  • 6
  • This worked for me. But this is such a bad design on MS part. – GenDemo May 13 '22 at 04:28
  • Opening the advanced query editor did not give me any column parameter. However, when using Janzaib M Baloch's answer in combination with this answer, it worked. So I accessed the advanced editor through Janzaib's answer to see the columns parameter, but implemented the 'null' solution from this answer. – Jem Aug 03 '22 at 10:03
9

You can add the column in your new data source, when Power BI refreshes against the data set you will NOT see it in report designer. You will have to go into the Query editor, select the dataset & refresh the preview. It will then pick up the new column. It will now show in the report designer.

Hope that helps

Jon
  • 4,593
  • 3
  • 13
  • 33
4

When you refresh you table and your data has new columns into it. Yes, it will give you issues. Or your new columns will just not show up.

Here is how you can fix it. Go to Transform Data and select transform data option step1

Look for "Transform Sample File" on left hand side and select it step2

Select advanced editor on top center and you should see something like this. and simply increase the number of columns your sample file can possibly contain. step3

Janzaib M Baloch
  • 1,305
  • 2
  • 5
  • 8