cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Dataset structure: star schema of database views or single view?

I am creating a dataset using data in a SQL Server database. I have read the sqlbi article that recommends using database views but I would like to know how do I structure them?

 

There is already a view of the database that contains most of the information I need. This view consists of 7 or 8 other, more basic views (mainly 2 column tables with keys and values), combined using left joins. Do I import the larger view as flat table, or each of the smaller views and create relationships etc in Power BI?

 

I guess conceptually I am asking: where does the SQL stop and Power BI start when it comes to creating and importing views?

1 ACCEPTED SOLUTION
3 REPLIES 3
Highlighted
Post Prodigy
Post Prodigy

Re: Dataset structure: star schema of database views or single view?

Hi @homeschooled 

The best practice is always to use a Star schema in your model therefore it is better to import smaller views and let Power Bi desktop detect the relationships. Power Bi is good in creating the relationships between tables

 

Regards

Regards
Amine Jerbi
https://www.linkedin.com/in/amine-jerbi-2b3a8928/

Did I answer your question? Mark my post as a solution!
Highlighted
Super User VII
Super User VII

Re: Dataset structure: star schema of database views or single view?

@homeschooled here is a great article on what is recommended for data modelling in Power BI

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors