Importing Data Model from Excel - powerbi

I imported a Data Model from Excel into PBI & now I can see all the queries from the original data model in PBI etc
When I went back & adjusted the original a query in the original Excel data model (added a column in Power Query) this did not flow through to PBI when refreshed
Once you import to PBI do you need to make all query changes through the PBI editor rather than going back to Power Query in Excel?

Related

Automate excel file in Power BI when refreshes the report

I need help in below PBI Requirement--
currently, we are using data from one static excel file in Power BI and whenever new changes are require, we edit the excel and save it into update file.
User's requirement is to have a form in power bi in which user can enter the data and it should get updated in the excel and loaded into the power BI.
Please let me know if any one have done this.
Manual I did but Dynamic it is not getting written some M-code and all
Connect your PowerBI dataset having excel data to power Apps(PowerApps visual),powerapps automatically creates a user editable form with available columns or you can create a form according to your requirement which you can access from power bi through powerapps visual.

How to create Power BI dataset (including fact & dim tables, relationship etc.) automatically at scale?

I have a PBI dataset which I created using PBI Power Query on my local laptop.
The PBI dataset modeled the gross data into fact the dim tables.
Let's say that the source data is an invoice table, the power query break the table to fact and dim table, create the connections etc. Then I create a PBI report to visualize this data.
I am looking for a way to create the data model automatically.
As I picture it it will be a JSON file which include the data source parameters (details , credential and other parameters) and a script which include the data model logic as I created on Power Query).
When I get a new invoice table from another data source all I need to do is:
update the JSON file and run the script which will setup the data model automatically.
for example: take the invoice table, create the fact and dim tables ad create the connections.
N problem using other Azure solution such as Azure analytical service etc.
I have the coding skills, so fee free to suggest API all everything.
Thank you, Tal

When data are embedded into saved Power BI report

When data are embedded into Power BI Desktop saved or shared report?
As far as I understand, PBI Import Mode will always embed all input tables data into saved or shared .pbix report. Am I right?
Suppose you have table A, and than based on it Aggregation Table B. What data would be saved to report if I report depended on table B?
Does PBI save any data with saved/shared report in DirectQuery mode?
When data are embedded into Power BI Desktop saved or shared report?
Data is saved in the model when dataset mode is Import or Composite a.k.a. Dual (i.e. both Import and DirectQuery). For more information see Dataset modes in the Power BI service and Manage storage mode in Power BI Desktop.
As far as I understand, PBI Import Mode will always embed all input tables data into saved or shared .pbix report. Am I right?
Yes, the imported data (if any) is always in the .pbix file. When published, it is split into separate report and dataset.
Suppose you have table A, and than based on it Aggregation Table B. What data would be saved to report if I report depended on table B?
It depends. There are options to reference or duplicate table. Also take a look at Use aggregations in Power BI Desktop.
Does PBI save any data with saved/shared report in DirectQuery mode?
No, in DirectQuery data is not imported, as noted in the documentation:
DirectQuery mode is an alternative to Import mode. Models developed in DirectQuery mode don't import data.
In this case queries are sent directly to the data source. There is some temporary caching though.
As far as I understand, PBI Import Mode will always embed all input
tables data into saved or shared .pbix report. Am I right?
Yes, import mode copies the data from the source into the pbix file.
Does PBI save any data with saved/shared report in Direct Query mode?
No, with direct query mode it only stores the connection details. If you create a new DAX calculated table based on the main Direct Query, it is evaluated and loaded into memory when the file is opened, so it only saves the query that generates the table, not the data in the table.
What you can do is change the pbix file extension to .zip and have a look inside the file for data and whats saved in the file
Hope that helps

Missing data fields from tables in Power BI

I am Using PowerBI Desktop Direct Query on SQL database
When the data is loaded into PowerBI Desktop I can see that there are certain fields missing from the table. When I view in SQL Server Manager Studio I can see the entire table.
Is there a known reason why all fields in the table would not be returned?
Check in the Query Editor window (hit Edit Queries) - steps can be added to any Query to remove columns, or specify a selected set of columns.
It could also be that the columns were added to the SQL table after the Power BI Query was built. For that scenario you just need to use Refresh Preview in the Query Editor window and they will flow through to the Power BI table.

How does Power BI knows which rows are latest?

I am using Power BI and my dataset with SQL Azure.
I created a products view which has (ProductId, Name, Status) columns.
When I refresh dataset in Power BI does it only import modified rows or all rows from SQL Azure?
Based on the information found here (Understanding data refresh section):
When you refresh data, you are updating the data in the dataset that is stored in Power BI from your data source. This refresh is a full refresh and not incremental.
The refresh is a full refresh not incremental. Since you are using an Azure SQL DB, you may want to try switching to "Direct Query" if possible. This would eliminate the need for any data refresh, the queries will be executed directly against the data source.
Hope this helps.