I have a Power BI report and it allows me to get data using the import mode, direct query mode, live connect (to dataset) mode.
Also the recent feature allows me to convert the live connect mode to direct query mode so that I can combine live connect dataset with more data sources.
My goal is to connect my report to 2 live datasets in direct query mode. However, I am only able to connect to 1 live dataset in direct query mode and then get data from additional sources. Is connecting to 2 live datasets not supported?
Link: https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-composite-models#use-composite-models
When you use DirectQuery, composite models make it possible to create
a Power BI model, such as a single .pbix Power BI Desktop file, that
does either or both of the following actions:
Combines data from one or more DirectQuery sources. Combines data from
DirectQuery sources and import data.
Step 1: Ensure settings are correct. It is currently a preview feature to enable DQ for PBI datasets and AS:
Step 2: Add a new source, choose Power BI Dataset.
Step 3: Add another source, this will pop up. Choose to add a local model:
After another data set has been added, the storage mode is still DQ:
This was done on Version: 2.110.1161.0 64-bit
Related
I am exploring the following:
I have a power bi report with data model in the same file.
I can separate the report into one file and dataset into another file, and have a live connection from report to dataset.
Recently a new feature is introduced wherein I can create a dataset (D2) which can make live connection to another dataset (D1), and the connection gets converted from live into DQ connection, and then in this dataset (D2) I can add new data sources to improve my model. Reports can connect using live connection to any dataset (D1 or D2).
Does power bi have capability to have a dataset or report that connects to 2 datasets?
A report can only connect to one dataset, but multiple dataflows.
However, maybe
Use composite models in Power BI Desktop can solve your problem.
I am connected to Tabular Model via Live Mode in Power BI. Is there a way I can change from Live Mode to Import Mode. I remember in older versions of Power BI at bottom right corner we used to have the flexibility to change it from Live to Import Mode, however I don't see that anymore in the latest versions.
Switching from Live connection to Import mode currently is not supported. You can vote for this idea, if you want to. You should create a new report and copy/paste as much as possible from your existing report.
I believe once you create a power bi file with a live connection to SSAS, you cannot change the storage mode to Import. I found the following question and answer on Microsoft documentation, not the exact question but similar. Basically says you cannot mix or change storage modes for SSAS live connection.
Question: If I created a live connection, can I connect to another data source in the same Power BI Desktop file?
Answer: No. You can't explore live data and connect to another type of data source in the same file. If you’ve already imported data or connected to a different data source in a Power BI Desktop file, you need to create a new file to explore live.
Reference: Connect to Analysis Services tabular data in Power BI Desktop
Is it possible to connect to 2 different data sources from Power BI Desktop at the same time to design one report?
I have 2 different data sources ( SQL Server & Oracle) to fetch data using Power BI and create a common report.
please suggest any possibility or any work around if there?
It is possible to connect to more than one data sources and types. You can mix and match modes as well, you can import data, or use direct query to allow a connection to the data sources. SQL Server will have a native driver in Power BI, for Oracle please see here
I am new to Power BI and trying to build a report for one of our business requirements. I have access to a Power BI dataset which I imported in the Power BI desktop version. I also need to import an excel file placed in SharePoint/OneDrive and merge the data in these two sources. When I am trying to do this, I am getting the below error.
Is this feature not available in Power BI?
If not, is there a way to achieve this objective?
You are connected to a Tabular SSAS cube or Power BI Service dataset, you can't add other data sources.
You can only mix data source types in the modes direct query and import. See the limitations section of the MS docs
One option would be to recreate the Tabular data model in Power BI, over the base table/views it is based on in direct query mode, then add the SharePoint list, or add it as a table in the Tabular/Power BI Service Dataset
So, currently I'm having difficulty understanding how Power BI Embedded can be setup so that each customer can access data from their own separate Azure Analysis Service, this is an App Owns Data situation. Analysis Services will be running in In-Memory mode and it will be accessed from Power BI via Live Connect.
Ideally I would like the Power BI Report to be ignorant of the data set/data source until the embedded report is provided with a parameter (e.g. connection string) which the report interprets so that it knows which server to connect to. So, ideally have: one Workspace, one Report, and zero (or a fake) Dataset.
The following is roughly what I'm looking to do (note the Red and Blue flow access a different server):
It looks like if I created both a Report and Dataset per customer I can achieve my goal but this seems like a poor approach since if the Report needs to be updated this involves updating, potentially, hundreds of reports. Also creating hundreds of Reports seems like unnecessary overhead when all Power BI needs to change for each request is the connection string pointing to the data source.
So is it possible to share the Workspace and Report across all customers but having completely separate data sources? Or is my approach in conflict with the way Power BI expects to function?
To date, I've tried using Query Parameters when configuring the data source in Power BI Desktop but I get the following error:
The connect live option for this file is disabled because it already contains data from another data source. You cannot explore live data and connect to another type of data source in the same file.
Please note,
Every report in Power BI can be connected to only one Dataset.
There is NO ability to dynamically change a connection string on the fly.
Currently, and in the foreseeable future, you'd have to clone the report & dataset per customer (or per connection setup) and modify the new dataset's connection string to match.
You can then dynamically choose which report to display based on your customer's needs.
Cloning a report can be done using:
POST https://api.powerbi.com/v1.0/myorg/reports/{report_id}/Clone
POST https://api.powerbi.com/v1.0/myorg/groups/{group_id}/reports/{report_id}/Clone
https://msdn.microsoft.com/en-us/library/mt784674.aspx
Changing the connection string would be done using:
POST https://api.powerbi.com/v1.0/myorg/datasets/{dataset_id}/Default.SetAllConnections
(similar API for groups)
https://msdn.microsoft.com/en-us/library/mt748181.aspx
using the C#.NET library provided by Power BI team, you'd use
Reports.CloneReport(string reportKey, CloneReportRequest requestParameters)
Datasets.SetAllDatasetConnections(string datasetKey, ConnectionDetails parameters)