Refresh powerBI data with additional column - azure

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?

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

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.
In Power BI Desktop, right-click on your dataset under Fields ('VoterList' in this case), and select Edit query:
In Power Query Editor, select Advanced Editor:
In Advanced Editor, increment the 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.

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
Look for "Transform Sample File" on left hand side and select it
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.

Related

Power BI data refresh - deleted columns in Excel still present as Fields

I have a simple Power BI dashboard which links to just one spreadsheet. The spreadsheet contains superfluous Columns, which I have now deleted.
However, when I refresh the data in Power BI, the Fields which were created from those Columns still exist on the right hand side.
How do I get Power BI to recognise that those Columns / Fields no longer exist?
I can delete them manually but I would expect there to be a sleeker option.
Thanks
Click on the "Transform Data" icon and you will end up in the PowerQuery designer (which is where you are deleting the columns). First refresh your preview (the circled option below).
If that does not work, then right click your table and select advanced editor.
Remove the columns from the Transform
Another reason can be when you've deleted a column you have previously renamed. This triggers an identical error as there's nothing to be renamed.
Its just a different type of error and thus different line in Murray Foxcroft's reply.
Solution: Avoid the field to be part of any logical expression in "Advanced Editor" view.

How to create a new table from Query data and change rows to column in Power BI

I am new to Power BI. I have searched a solution, but I can't find the one match my issue.
I use direct query to SQL Server to generate data table in Power BI. My query result as below:
And I want to create a new table and transform the data to be as below:
Really appreciate any help or idea.
Thanks
You need to pivot the Factory column to get the desired result.
In Power BI Desktop designer, click Transform data button from the Home ribbon tab to open Power Query Editor. First, delete the Comment column (or don't select it at first place) by right clicking on it's title and select Remove. You don't need it. Then select Factory column and click Pivot Column button from Transform tab:
and select Volume for values column:
This will pivot the column, i.e. make a separate column for each of the values in it, and give you the desired result:
In addition (you said you are using a DQ to get the data), you can also do the same transformation in the database query too.

How to hide Source Data Tables in Power Pivot

I unioned two tables (AccelerateData and Adjustments) in PowerQuery and loaded them into the data model (table name in the data model is AccelerateData). Afterwards I created a pivot table from the data model to analyze it. I want to make the data model accessible to other users as well and therefore I'm doing some tidying up.
In PowerPivot there is the option to "Hide from Client Tools". I have done this for the non relevant PowerPivot for columns and tables. However, I always see the source data tables from PowerQuery in the field list of the pivot table and can't find out how to hide them.
Anybody knows how to not show them in the field list?
Thank you very much!
I don't see a way to do exactly what you are asking under the All tab, but you can easily hide (or unhide) any sources from the Active tab with just a right-click and Remove from (or Show in) Active Tab.
In my opinion, All really should show all dependencies rather than some arbitrary user defined selection with the Active tab being used for customization and this seems to be how Microsoft built it.
After hiding them using the "Hide from Client Tools" option in Powerpivot, you also have to right-click and refresh your pivot table. That should hide the fields from the pivot table fields list.
I found a better solution than using the "Active" / "All" tabs.
In Excel, go the table you want to hide, then go to the Power Pivot tab, and select "Add to Data Model". This will make the table directly visible in Power Pivot, where you can now "Hide from Client Tools".
I agree that the PivotTable Fields view shouldn't include tables outside of your data model, but with this solution you at least gain control of hiding them, and as long as you don't create any relationships you should be ok in terms of performance.

How to link table row content to source in Power View

I am currently able to use Power View to view, filter, and highlight my data. However I haven't figured out a way to link my table rows to the data source (i.e. tables in other tabs of the Excel spreadsheet).
so that if I double-click on a row, Excel will direct me to the appropriate table and show me the full content of that row (so that I can see data in the other columns that I wasn't showing in the Power View dashboard).
For example, I wouldn't put a "Description" column into the dashboard but I would want the user to be able to find and see the paragraph-long description for each item if he or she chooses to drill down.
See image
I want to be able to click on any of those five line items and go to that table with that table filtered for only that item.
Does any one know how to do this?
This is not something that's supported in Power View.
HTH,
-Lukasz

How do you copy the powerpivot data into the excel workbook as a table?

I have data in powerpivot that I've modified and I'd like to place it into the workbook as a regular table (and not as a pivottable). I need this so that I can run use the table for some vlookups from another worksheet in the same workbook.
I found this answer: link which I will try and summarize with out cutting and pasting to much. This assumes you have powerpivot installed.
goto powerpivot and "import from and external source" the data you want to munge and bring back into the workbook as a table
Key here is to select the checkbox “Enable selection of multiple tables”.
when prompted at the "import data" window, pick pivot report (you won't really use this)
go back to powerpivot with the "Manage Data Model:
add a new measure below your data. something like: NRofOrders:=COUNTROWS(values(FactResellerSales[SalesOrderNumber]))+0
(you won't really use this but this seems to change the query to this table so that you can use DAX)
also add any columns that you want ( for me, this is want I wanted that I wanted to be reflected back in the workbook)
back to Excel, select the data tab, click on Existing connections and select Tables: and then pick a table from your query.
boom, you're done
(the link continues on and you should read that as it's interesting but at this point you should have powerpivot query with your modification as a table in your workbook)
The July 2014 update to Power Query (pushed out at the end of Aug) simplifies the answer. With the new Power Query Update you can pull the data into the Data Model with out having to also copy it to the Works sheet.
goto powerquery and import the data you want to munge. Use the option to just add it to the Data Model.
go back to excel and then go to powerpivot with the "Manage Data Model" button.
munge your data (add columns, whatever)
back to Excel, select the data tab, click on Existing connections and select Tables: and then pick a table from your query.
boom, you're done
In the PowerPivot window you can select the table, or elements of it, and then copy (nornal right click or ctrl +c) and paste that into your spreadsheet.
This works for reasonable amounts of data but if you try and do it with thousands of rows you may find that excel objects and falls over, based on my experience.
Vlookups kind of defeat the purpose of PowerPivot :-)
Found a great solution over on Mr Excel
(http://www.mrexcel.com/forum/power-bi/637919-extracting-static-data-powerpivot-without-pivot-tables.html)
If you are trying to get a PowerPivot table into Excel, then you can simply query it. The easiest way to set that up is to first create any pivot table based on you PowerPivot data. Then double-click the measures area to drill-through. This creates a table with a connection to your PowerPivot model. Then edit the command text by going to: Data > Connections > Properties > Definition tab > Command Text.
Change it to something like
Code:
EVALUATE Table1

Resources