SQL Server & Power BI Instead of Excel

I love data analysis and for the life of me, I can't understand why people use Excel as a database. I also wonder why people waste so much time using Excel for Data Visualizations. It's like "When the only tool you have is a hammer, everything looks like a nail" As an experiment, I used my SQL server to generate a listing of sales for the years 2010 through 2014 by country from the SQL Server AdventureWorks database. The raw data yields 60,398 rows. These are the types of things I like to do when I can't sleep at night.

No alt text provided for this image

You will soon see how you can produce the same results using SQL Server and Power BI in minutes, instead of hours using Excel. If you were doing this only in Excel, you would need to import the raw data into an Excel spreadsheet in order to create a Pivot table. This also increases the amount of mistakes that can be made .

No alt text provided for this image

We all know what happens when you cut and paste data into excel. The results are very unpredictable and depending how large the raw data file is, load time can really be an issue. Also, by the time you go through all the trouble in Excel, the data has probably changed already.

What we will do now is use Power BI and connect to a SQL Server data. Use an SQL query using the Pivot operator and load the data into Power BI.

No alt text provided for this image

Like magic, the SQL Query generates the same Pivot table in one step instead of formatting all the raw data in Excel and creating a pivot table.

No alt text provided for this image

Also in the same pass Power BI will create the same exact visualization that would require another step in Excel by creating a Pivot Chart.

No alt text provided for this image

Where you reap the biggest benefits using SQL Server and BI is that the data is real time so anytime you open the BI file, all you need to do is click refresh and your visualization automatically updates. If you are using Excel, every time you need to update your results, you will need to import new raw data in order to update your dashboard.

Granted, there is a learning curve when creating dashboards with Power BI, but it is well worth it in my opinion.

I hope this was a useful example and offers you another option when creating your dashboards.




Sounds great Frank. I think you just volunteered to host a lunch-n-at work.

To view or add a comment, sign in

More articles by Frank Semeraro

  • Pro Power BI Desktop - Third Edition

    Since I review many technical products and books, I have been asked to review Pro Power BI Third Edition by Adam Aspin.…

  • SQL Server Management Studio Tips

    I decided to write this article at the request of my SQL Server followers. Microsoft SQL Server Management Studio has…

  • Connect to your Databases with Python

    Since I have a lot of SQL followers I thought this would be useful to any of them that wanted to use Python to connect…

  • Using SSRS to Create Dynamic Dashboards

    Recently I wrote an article about SQL Server and Power BI instead of using Excel. Power BI is a great product but has a…

  • SQL Server Tables

    I was playing around with SQL Server today and wrote some ways to describe tables from a database. Our database has…

  • Fire TV Cube - Makes an awesome gift

    I love gadgets and use any excuse to buy them as soon as they sit the streets. We got rid of our cable a few years ago…

  • Are Smart Watches Worth Buying

    What you need to know before you purchase a Smart Watch An an uber geek, I just love getting new toys. My wife always…

  • SQL OPS Studio Review

    What is SQL OPS Studio and why do we need it? So What is SQL OPS Studio ? It is s a free, cross-platform tool that can…

  • Create a Power BI Dashboard in 5 Minutes

    Creating Dashboards in Power BI is Easy The more I use Microsoft Power BI the more I like it. I used to create my…

  • Intel NUC - Next Unit of Computing

    What is the Intel NUC ? The Intel NUC is a small PC with the power of a full sizes tower which offers a range of…

    6 Comments

Others also viewed

Explore content categories