Power BI – Using Reports Usage Metrics to create Custom Reports & Leverage them for other App Workspaces
In this blog post below I am going to show you how I created my own Custom Usage Metrics Report.
NOTE: This has been done using my Report Metrics and not the Dashboard Metrics.
NOTE II: I am going to refer to the Reports Usage Metrics as RUM (It has a nice ring to it)
And then how I changed the Connection details, so that I could re-use the same Custom Usage Metrics report in all my different App Workspaces.
Creating my own Custom Usage Metrics dataset
In order to do this, I followed the following blog post from the Power BI Team.
Measure and magnify your impact with dashboard and report Usage Metrics for content creators
I then followed how to create my own dataset under the section called: “Save the Usage Metrics report as a full-featured Power BI report (personalize)”
What this does is briefly the following.
- You first must run the Reports Usage Metrics to create the report.
- Once that is done, you can then go into the Usage Metrics report.
-
Then you can click on File and then Save As save the report with a different name.
- What that does is it then saves a version of the report and the underlying dataset.
Rename dataset
Next what I did was to rename the dataset that was created as part of the Reports Usage Metrics report after I had clicked on File and Save As
- In the Power BI Service I went to my App Workspace and clicked on Datasets
-
I could then see my new dataset for my Report Usage Metrics Model.
-
I then clicked on the Ellipses and selected Rename
-
I then renamed it to Report Usage Metrics Model – Site Analytics
- Then I clicked Save.
My Reports Usage Metrics Report
I have already created my Reports Usage Metrics report in which I had created the measures and visuals. As shown below.
Creating a connection to my new Reports Usage Metric dataset
Next what I needed to do was to create a connection to my Reports Usage Metrics Report dataset for the Report Usage Metrics Model – Site Analytics, this is so that I can get all the connection details.
- To do this I opened a new Power BI Desktop File.
-
I then clicked on Get Data and selected the Power BI Service.
-
I then selected the Dataset I had renamed earlier
- I then clicked Load.
-
I could now see all the tables under the Fields.
-
Then I saved my file with the following name.
- RUM – Site Analytics – Connection.pbix
- NOTE: Make a note of where you saved this file.
- NOTE II: This is so that I know it is the file that has the connection in it.
Creating a copy of my Reports and updating the connection file.
What I did next was to copy my existing Reports Usage Metrics report, and once copied I then updated the connection file, so that it will now point at my Report Usage Metrics Model – Site Analytics dataset.
- I went into my Windows Explorer to where I had my first Reports Usage Metrics report.
- Right clicked and selected Copy.
-
Then right clicked again and selected Paste.
-
I then renamed the Reports Usage Metrics Model – Finance – Copy.pbix to Reports Usage Metrics Model – Site Analytics.pbix
-
Now what I did was to find the file I saved above and copied it into this folder.
-
I then renamed the following files to .ZIP, this is so that I can copy the Connection
file between the files.-
I did get prompted asking if I was sure to change it and I clicked on Yes
- This is what my files looked like.
-
-
Now I went into the RUM – Site Analytics – Connection.ZIP file and copied the Connections
File into the same folder.- So that I had extracted it out of the ZIP file.
-
I then went into the Reports Usage Metrics Model -Site Analytics.ZIP file.
- I then copied the Connections file from the previous step into this ZIP file (Reports Usage Metrics Model -Site Analytics.ZIP)
- I was prompted that a file already exists
-
I clicked Copy and Replace
-
I then renamed my Reports Usage Metrics Model -Site Analytics.ZIP
back to Reports Usage Metrics Model -Site Analytics.pbix- I did get prompted asking if I was sure to change it and I clicked on Yes
Opening my Updated Reports file and uploading to the Power BI Service.
The final step was to now open my Reports Usage Metrics Model -Site Analytics.pbix, make sure it is correct, and then upload this into my App Workspace.
- I opened my Reports Usage Metrics Model -Site Analytics.pbix and waited for the refresh to complete.
-
I could then see that this was updating to my data in my Site Analytics Workspace.
- I then uploaded this to my App Workspace and I could see my usage metrics for my App Workspace.
Conclusion
As you can see I have shown you how to copy an existing Reports Usage Metrics report, so that you can quickly and easily copy this to all of your other App Workspaces to see how it is being used by the users in your organization.
If there are any questions please let me know in the comments section below.
Hi,
Thank you for sharing. It’s a very useful tips.
How about including different connection from different work/appspaces into one RUM report? Then publishing it (for eg in a appspace’s name Monitoring)?
Thanks,
Dung Anh
Thanks I am glad that you found it useful.
You could possibly try that for sure and it might work.
Unfortunately, switching the connections file does not work for me. I followed your instructions but Power BI Desktop (August 2017 Version) always complains the resulting .pbix file would be corrupt.
Hi there, I am not sure why that is happening.
I did it a few times on my side and it did work as expected. Please make sure that you only copy the selected files?
And also if you can check that you have got the latest version of Power BI Desktop installed? Because when you download the file from the Power BI Service it is linked to the latest Power BI Desktop version.
I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Thanks for the message. I appreciate great comments.
The ‘Connections’ file no longer exists in the .pbix.
Hi there
When I checked my Power BI Desktop file and changed it to a .zip I can see the connections file.
I have replaced the connection file, but after that I have the following questions:
1. How to revert/ renamed my Reports Usage Metrics Model -Site Analytics.ZIP
back to Reports Usage Metrics Model -Site Analytics.pbix.
Please give the detailed step.
When I am trying to open the .zip file using power BI desktop, the modified connection power Bi file is saying, it gets corrupted though I am using the latest version of desktop.
How to revert/renamed my Reports Usage Metrics Model -Site Analytics.ZIP
back to Reports Usage Metrics Model -Site Analytics.pbix after modified the connection. Please give detailed step.
Once I tried to open the .zip file using power BI desktop, its saying corrupted file though using latest version of PB desktop
Hi there
I would suggest for you to watch this YouTube video by Guy in a Cube which will allow you to rebind the dataset to a new source
Power BI – Rebind Datasets
I have gone through the video but it is about copying a report from one work space to another and binding the dataset.
My requirement is:
1. I have 3 work spaces( w1,w2,w3), each having a usage metric model with its own usage report for this workspace.
2. I want to create reports in another work space(w4) which can take the data from usage metric model from w1,w2 nd w3.
So, instead of creating usage reports to individual work space, I want to create a work space called UsageMetric workspace where I can create multiple reports but that can take the usage data from different other work spaces.
Is that possible, if yes, please give the steps in details. If no, is there any work around for the same.
Currently using the Report Usage Metrics only applies to each individual App Workspace.
What I would suggest is if you want to get a better view across the entire organization is to use the Power BI Audit Logs.
Here is a great blog expalining how to download them and then use them in Power BI.
Power BI Audit Solution
I am getting the error” This file is corrupted or was created by an unrecognized version of Power BI Desktop”. I have done the following steps:
1. Renaming the .pbix file to .zip
2. Opened the connection file in notepad and without changing anything just saved it.( changing the connection also causing the same problem)
3. renaming back the .zip file to .pbix and opened it.
But its not working then.