How to build an efficient data model in power Bi? - powerbi

I'm new to Data visualization and currently I'm migrating couple of dashboards from tableau to powerBi.
Both tableau and powerBi imports data from sql server.
Which is the best way to create an efficient data model in powerBi while taking into consideration of views from tableau?

The best way to create a data model in Power BI is to create a Star Schema. If you are not familiar with a Star Schema do some research on the web. It will be something that it is well worth your while to learn.
You may end up having to use Power Query to deal with tables from both sources that hold similar data.

Related

Power BI Paginated report using power BI dataset from multiple azure sql servers

Just looking for a pointer as to the best way to go about this.
I'm comfortable with Power BI Report Builder (SSRS experience), but am pretty much a Power BI novice.
Basically, we have to create a Paginated (non-interactive) report for client consumption. It's going to be large, have multiple datasets, and use parameters / presence of data in the data sets to group data and/or turn sections on or off.
Not too much visualisation - some illustrative graphs and tables here and there - and quite a bit of text, some of it with data / text inserted via placeholders from the various datasets.
There are 3 Azure SQL databases I need to combine data from for this, (split roughly into config, data and results).
In SSRS / SQL Server, I would have used one of my databases as the data source, and written a stored procedure per SSRS data set, joining to tables in other databases in the stored procedure query.
Then in Report builder just set up the data sets joining to the stored procs and gone from there.
On Azure SQL Server, I think I've got 2 options:
write elastic queries so I can bring in the data I need from each database, but just query on one database.
Build a Power BI Model / Dataset that joins the relevant tables from the 3 databases together, publish to power bi service and use that as my datasource.
What's the best solution for my reporting scenario?
Cheers

What is the approach to merge data from multiple databases (same schema) using Power BI?

I have 3 OLTP databases, all using the same database schema. Each db represents one department.
I am exploring Power BI as a solution for reporting at the company level, so all departments combined.
What is the approach to combine data from multiple dbs into a data warehouse? For example - do I need SSIS to combine the 3 dbs into 1 data warehouse?
Another option could be to have 1 shared dataset per db, and then the final report can connect and combine multiple live datasets? Or is there another way with Power BI like combining multiple live datasets?
Any reference link on how if someone has done this?
Or is there another way with Power BI
Yes. Simply create a single import model and load data from all three databases in it. So for each table in your Power BI model you would have three Power Queries set to not load into the model, and you would append them in a query that is used to load your model. See eg: https://learn.microsoft.com/en-us/power-query/append-queries
Best practice would be to:
Extract the data into a single database (DWH or reporting schema)
Build the necessary items there for your data model, be it reporting schema, or star/snowflake schemas
Connect Power BI to that schema.
Combining datasets is going to be tricky, you may have the same measures in each of the datasets. Combining in the database, with any added columns to indicate the department is the best option in terms of supporting updating/adding/removing items. For example, if the schema changes in the DB's you do it in one place, not three datasets. The toolset in DB/SSIS will be better suited to the heavy lifting of the data to a location.
You would use SSIS to extract the data if on-prem data, Azure Data Factory for Azure DB's. Extract to a staging schema, convert/transform the data into its final from, with a new schema to define what it is, facts/dimensions other schema names such as reporting can be used, depending on the data model you wish to build. Most of this is covered by the standard ETL pattern of OLTP to an OLAP database.

Repointing Power BI visuals to new tables from AAS

Is there an easier way in Power BI to repoint the visuals to a new table which initially pointed to another table?
Scenario :
I have a Power BI report which is sourcing data from an Azure Analysis Service. The AAS model has multiple tables out of which 2 had issues and had to be re written with a new logic. Now the main task is to repoint the visuals in PBI to fetch fields from newly added tables.
The one way I know in this scenario is a manual effort where you replace/switch fields in visuals from old to new table.
Is there any better/easier/efficient way to achieve this?
TIA

Transform Data Option In PowerBI

Being a beginner in PowerBI, I am trying to import dataset on online portal of PowerBI(aap.powerbi.com). When I upload the data, I am not able to see the option to transform or manipulate data. What is the way I can access this without using power BI desktop
The PowerQuery or the Trasnform Data option is only available in PowerBI cloud. Even if you want to create measures or new columns you'll have to do it on the desktop, there's no way around this unfortunately currently. If it is possible in the future, let me know here!
Its better to use power bi desktop to data manipulation and preparation part.

Combine several pbix models into a single repository

I have a collection of .pbix models that follow a similar structure, ie, have the same tables and relationships.
It is too complex to combine them all into a single .pbix.
Is there a way to upload all these tables into a single repository, like PBI Service dataflows or a data warehouse, or something similar.
And then get the data back to PBI Desktop and perform DAX calculations, visualizations and report.
Any suggestions/ ideas?
Thank you so much for helping!
You can publish them to Power BI Service, and then create separate reports, but using these published datasets as a data source.
See Connect to datasets in the Power BI service from Power BI Desktop.
After publishing your "model" reports to Power BI Online, start making a new blank report, but instead of getting the data from files/databases/etc., choose Power BI service as a data source and select the previously published dataset. After that, you can publish your report the same way, but in this case you can share one dataset (your model) between multiple reports.