How To Strip Off Seconds From A DateTime Value In Power Query

In this video, Melissa will demonstrate three ways on how you can strip off seconds in a DateTime value in Power Query. DateTime values can have an extremely high cardinality, which can impact model size and performance. Ideally, we’d want to lower the cardinality of our data as much as possible while still meeting business requirements.

***** Video Details *****
00:00 Introduction
01:27 UI-driven approach
02:17 Non UI-driven approach
04:31 DateTime.ToRecord

***** Learning Power BI? *****
FREE COURSE – Ultimate Beginners Guide To Power BI – http://portal.enterprisedna.co/p/ultimate-beginners-guide-to-power-bi
FREE COURSE – Ultimate Beginners Guide To DAX – http://portal.enterprisedna.co/p/ultimate-beginners-guide-to-dax
FREE – Power Continue reading “How To Strip Off Seconds From A DateTime Value In Power Query”

Get feedback from your Power BI report users!

What if you could find out what your users want directly from your Power BI Reports? What if users could submit bugs and feedback for your report? Adam shows you a way to do it!

Connect with Chris:
https://twitter.com/ChrisHamill17

📢 Become a member: https://guyinacu.be/membership

*******************

Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.

🎓 Guy in a Cube courses: https://guyinacu.be/courses

*******************
LET’S CONNECT!
*******************

http://twitter.com/guyinacube
http://twitter.com/awsaxton
http://twitter.com/patrickdba
http://www.facebook.com/guyinacube
https://www.instagram.com/guyinacube/
— <a Continue reading “Get feedback from your Power BI report users!”

You thought DAX? Alex shows you Dynamic M-M-Magic!

We thought that DAX was the thing in Power BI. Alex proves the M-M-Magic is really with Power Query! If you wanted to be blown away but what Power Query can do, this is the video for you!

Connect with Alex:
https://twitter.com/notaboutthecell
https://www.linkedin.com/in/alexmpowers/

Power Query folding
https://docs.microsoft.com/power-query/power-query-folding

30 Day Challenge: Query Folding
https://www.youtube.com/playlist?list=PLKW7XPyNDgRCorKNS1bfZoAO3YSIAVz3N

Power Query M function reference
https://docs.microsoft.com/powerquery-m/power-query-m-function-reference

📢 Become a member: https://guyinacu.be/membership

*******************

Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.

🎓 Guy in a Cube courses: <a Continue reading “You thought DAX? Alex shows you Dynamic M-M-Magic!”

How To Extract Themes And Backgrounds For Your Power BI Reports

In this tutorial, Brian is going to share how you can extract themes and background images that you can use in your own Power BI reports by deconstructing a pbix file to give it an extra oomph. This is in response to a participant’s question during our last Innovation Labs event.

***** Video Details *****
00:00 Introduction
01:50 Pulling a theme out
02:35 Extract background image
04:42 Importing a theme
05:03 Visualization properties

***** Related Links *****
eDNA Power BI Showcase Gallery – https://www.enterprisedna.co/power-bi-showcase/

***** Learning Power BI? *****
FREE COURSE – Ultimate Beginners Guide To Power BI – http://portal.enterprisedna.co/p/ultimate-beginners-guide-to-power-bi
FREE COURSE – Continue reading “How To Extract Themes And Backgrounds For Your Power BI Reports”

Top 5 things to get started with Azure Synapse Analytics

Getting started with Azure Synapse Analytics? Here are 5 things you should know as you begin your journey! Already been using Synapse SQL dedicated pools? Are you aware of these items?

Connect with Shane:
https://www.linkedin.com/in/shanerisk/

Best Practices: https://docs.microsoft.com/azure/synapse-analytics/sql/best-practices-dedicated-sql-pool

What is dedicated: https://docs.microsoft.com/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-overview-what-is

Table Distribution: https://docs.microsoft.com/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-distribute

Indexes: https://docs.microsoft.com/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-index

Statistics: https://docs.microsoft.com/azure/synapse-analytics/sql/develop-tables-statistics

Data Loading: https://docs.microsoft.com/azure/synapse-analytics/sql/data-loading-best-practices

📢 Become a member: https://guyinacu.be/membership

*******************

Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.

🎓 Guy in a Cube courses: <a Continue reading “Top 5 things to get started with Azure Synapse Analytics”

Solution for Power BI Refresh Error in the Web Service

Web Service Power BI Refresh Error When Trying to Refresh On Premises 32-bit Database/Source

I recently worked with a client who is still using an old 32-bit Oracle instance with lots of dependencies. Upgrading is not currently an option. In her Power BI report/model, she is querying several tables in the Oracle database. Unfortunately due to the 32-bit architecture she was not able to schedule her refreshes, even using the desktop gateway.

The Power BI refresh error she received was “Failed to update data source credentials: An error happened while reading data from the provider: ‘Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.'”

Workaround for Power BI Refresh Error in Web Service When Trying to Refresh On Premises 32-bit
Power BI Architecture Error

As a result, she found she could only refresh this report using the Power BI desktop client. She would then manually publish to the cloud. This was cumbersome as the data refresh took quite some time, and she needed it done daily. I came up with two solutions for her, both of which we implemented and tried. One proved to better for us, and ultimately she is successfully using this first solution/workaround that I will cover.

Solution #1Export Query Results to CSV and Post on SharePoint

  • So just as the title of the section states, the final workaround was for us to automate the generation of CSV files to ultimately be consumed by Power Query.
  • We did this by using a combination of scripts pulling data via SQL in VBA (Access, Excel) and via SQL in Python. You can pull the data any way you are most comfortable (macros, etc.).
  • The query results are then outputted to the CSV files, which are written directly to SharePoint folders.
  • After all this was set up and the initial files were changed, we then changed the source of the data in Power Query, to now navigate to SharePoint folders and then process the CSV files.
  • It is important to note that you are not required to use CSV files. These made sense in our case due to the amount of data we were working with (generating several very large files nightly). You can write to any supported file format if that works better in your case, as long as you can place it on SharePoint and Power Query can process it.
  • Also as noted we used a separate folder for each unique query. If you are also replacing several queries, you can either do this (write to separate folders) or if you would prefer just one, then utilize different naming convention patterns to filter.
  • Everything is then kicked off via a command line batch script (.bat) using the Windows task scheduler on her desktop to run overnight. We also set up the same script on a colleague’s PC as a backup/for redundancy in case something were to happen, but it is not actively running.
  • After refreshing and publishing the updated report with the new SharePoint sources, I then went into settings in the Web Service and added the credentials there for SharePoint. I saved and kicked off the refresh in the browser.
  • The refresh was successful, so I then set a daily schedule for the web service to refresh automatically. No intervention has been needed since implementation!

Solution #2 – Automate the Power BI Desktop Refresh Process Using Python

  • This method is much less convenient in my opinion, as after it had been implemented, it failed often and required manual intervention several times before we moved on to the other solution.
  • Another caveat is that this solution requires the user to have at least some familiarity with Python (or finding someone with Python knowledge to tap as a support resource).
  • Also, obviously someone needs to install Python, the required package and then set up the automation to run the scripts.
  • Important note – it is possible to install a portable version of Python if you do not have admin rights on the desktop.
  • The package is called pbixrefresher (repo is linked).
  • This gentleman does a great job of walking through setting it up in his YouTube video about it: https://youtu.be/wtXXpicCUlY

I hope this post has been helpful and has maybe given you some ideas on how to proceed if you or an organization you are supporting is facing this same situation with older data sources. Also, I’d love to hear about other solutions if you’ve faced the same issue and handled it differently.

Please reach out with any questions or if you would like to see further coverage of any of the concepts/steps mentioned in this post. I am also available on a limited basis for consulting as my schedule is full as of late (a good thing!). Just fill out the contact form and I will get back to you.

How To Calculate Ranking In A Tabular Form In Power BI

Ranking is a great way to see the best or worst performing variables in a given data set. In this video, Harsh is going to demonstrate how you can calculate a ranking when fields from different dimension tables are brought together in a tabular form in Power BI.

***** Video Details *****
00:00 Introduction
01:00 Scenario
02:37 Ranking measure
03:50 IF condition
04:30 ISINSCOPE

***** Related Links *****
How To Calculate Percentages In A Hierarchical Form – https://youtu.be/wbIkcRBlOao
How To Calculate Ranking In A Hierarchical Form – https://youtu.be/Q_rMQ89ng70

***** Learning Power BI? *****
FREE COURSE – Ultimate Beginners Guide To Power BI Continue reading “How To Calculate Ranking In A Tabular Form In Power BI”

How To Visualize Correlations In Python And Port Over Into Power BI

Being able to compare and identify correlations in a data set is one of the fundamental skills of a data analyst. In this video, Gaelim is going to take you through how to visualize correlations between different attributes or variables in a dataset using Python, and how to port these over into Power BI.

***** Video Details *****
00:00 Introduction
00:48 Packages
01:21 Attributes of the data
02:12 Scatterplot
05:22 Correlation w/ other variables
05:57 Regression plot
07:50 Correlation matrix
10:11 Heatmap
13:05 Staircase
13:39 Porting over into Power BI

***** Learning Power BI? *****
FREE COURSE – Ultimate Beginners Guide To Power BI – http://portal.enterprisedna.co/p/ultimate-beginners-guide-to-power-bi
FREE COURSE Continue reading “How To Visualize Correlations In Python And Port Over Into Power BI”

Here’s a BANANAS report design idea!

There are many things you can do in a Power BI report that aren’t super complex. Here are a few ideas to get you thinking! If Adam can do this, you definitely can! Shout out to Chris Hamill for this design!

Chris Hamill:
https://twitter.com/ChrisHamill17

Info Panel Video: https://www.youtube.com/watch?v=yYr_SlG8bpw

Mastering Bookmarks: https://www.youtube.com/watch?v=xCMqWEvSkAs

Custom Background: https://www.youtube.com/watch?v=0QvovI3aycs

📢 Become a member: https://guyinacu.be/membership

*******************

Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.

🎓 Guy in a Cube courses: https://guyinacu.be/courses

*******************
LET’S CONNECT!
*******************

Continue reading “Here’s a BANANAS report design idea!”

What if we could RATE a Power BI report page?

Have you wanted the ability to give ratings or feedback on Power BI reports? Have your users tell you what they think? Patrick shows you a way you can do this using Power Automate!

📢 Become a member: https://guyinacu.be/membership

*******************

Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.

🎓 Guy in a Cube courses: https://guyinacu.be/courses

*******************
LET’S CONNECT!
*******************

http://twitter.com/guyinacube
http://twitter.com/awsaxton
http://twitter.com/patrickdba
http://www.facebook.com/guyinacube
https://www.instagram.com/guyinacube/
https://guyinacube.com

***Gear***
🛠 Check out my Continue reading “What if we could RATE a Power BI report page?”

A Deep Dive Into RANKX

RANKX is a scalar DAX function in Power BI that allows you to return the ranking of a specific number in each row of a table that forms part of a list of numbers. In this video, Harsh is going to deep dive into the RANKX function and analyze some important and most common scenarios you’ll encounter that requires for this foundational function.

***** Video Details *****
00:00 Introduction
01:31 Customer ranking
02:13 Cities ranking v1
05:02 Territories ranking
07:38 Cities ranking v2
08:09 Products ranking
09:18 DAX studio

***** Learning Power BI? *****
FREE COURSE – Ultimate Beginners Guide To Power BI – http://portal.enterprisedna.co/p/ultimate-beginners-guide-to-power-bi
FREE COURSE Continue reading “A Deep Dive Into RANKX”

Can you be a Data Scientist without actually being a Data Scientist???

Forecasting data and other items are usually stuff that data scientists use to tell the future. What if you could do the same thing – EASILY! Tzvia is back to show you how Azure Data Explorer can help!

Connect with Tzvia:
https://www.linkedin.com/in/tzvia/
https://twitter.com/tzvia

Time series analysis in Azure Data Explorer
https://docs.microsoft.com/azure/data-explorer/time-series-analysis

Anomaly detection and forecasting in Azure Data Explorer
https://docs.microsoft.com/azure/data-explorer/anomaly-detection

Machine learning capability in Azure Data Explorer
https://docs.microsoft.com/azure/data-explorer/machine-learning-clustering

📢 Become a member: https://guyinacu.be/membership

*******************

Want to take your Power BI skills to the next level? We have training courses available to help you Continue reading “Can you be a Data Scientist without actually being a Data Scientist???”