Sue Bayes
February 17, 2022
As part of any Power BI development it is important to understand how users are engaging with Power BI and how they are using it. This allows you to understand what matters to them and to allow governance of the activity. To be able to manage an activity you need to measure it. Unfortunately, at the time of writing, this is not easy to do, particularly if you don’t have a person/team who understands that this is required and how to do it.
There is a new Power BI Adoption RoadMap that has been developed to help businesses understand what steps they need to follow to ensure that they are able to monitor their journey with Power BI.
Power BI administrators often use a combination of Power BI-PowerShell to write scripts either for automation or to execute a large number of tasks. This post is a collection of steps on how to use Power Shell to access Power BI Activity Logs. As I haven’t used PowerShell before, but have used command line scripting before in DOS and Linux, albeit minimally, there will be a lot of research required and wanted to keep a track of things I learnt along the way.
Power BI can then access the files within the folder to create a dataset to allow analysis of Activity Usage.
1. Create a query to access Folder.Files within Power Query (I like to use a parameter called FilePath for the filepath).
2. Expand the data from the folder and perform normal cleaning task:
Additional “things” I learnt and want to remember:
Spaces in names causes splits. We are encouraged to name things “human friendly” however many different programming languages don’t like it. Power Shell included. To tell Power Shell to ignore the space in a name in it, put an & in front and wrap the name in ” “, eg:
& “C:\Windows Services\Myservice.exe”
Any questions, happy to help,
Sue
February 17, 2022
