Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Usage Metric Report - Custom Measure for Distinct Date and Report by User

Hi,

 

I'm connecting to the Usage Metric Report in my workspace via Power BI Desktop - I've saved the Usage Metric Report after viewing the report in the Workspace which then let's me connect to it as a datasource in Power BI Desktop. I'm doing this because I want to add in some additional measures that help make the report more usable for me.

 

In my workspace I have 3 reports. If one use views all 3 reports in one day I want this to total 3, regardless of the number of times each report is viewed in that day. Then I want to be able to roll this up across days and users.

 

At the moment the 2 standard count metrics don't give me what I'm looking for:

 

  • ViewsCount - this counts the number of pages in a report that were viewed. I only want to count if the report was viewed, not all it's pages
  • ViewersCout - this only give me the unique number of users

 

I'm able to get the total distinct days viewed by user using the following:

 

Viewed = CALCULATE(DISTINCTCOUNT(Views[Date]),GROUPBY(Users,Users[UserGuid]))
 
But this only gives me the days. If they've viewed more than one report in that day it doesn't count this. Below I've given a screenshot of the table of data to help illustrate what I'm trying to achieve:
 
Usage Metric.PNG
In this example you'll see a column for Date (from Views table) and ReportGuid (from Views table) with the names of 3 Users (from Users table) in columns and a count of the times each report has been viewed, using the DAX calculation above. The totals are the bottom are only counting the unique days, not the unique days and report IDs. The real figures should be 1, 7 and 11.
 
Any suggestions?

MarkJames

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured it out:
 
ReportViews = COUNTROWS(SUMMARIZE(Views,Views[Date],Views[ReportGuid],Users[FamilyName]))

View solution in original post

4 REPLIES 4
Jaf017
Helper I
Helper I

@Anonymous - I've saved a copy of the usage metrics report and can customize it in the service. However, I'm not able to connect to the dataset in PBI Desktop. If you don't mind could you describe how you connected to the dataset in the Desktop? I see all of my other datasets in the workspace, but just not the usage metrics report.

Anonymous
Not applicable

Hi @Jaf017 ,

 

I created a Usage Metric Report in the Service which creates a dataset. All I needed to do from there was go to Desktop and connect to a Power BI Datset. When the window appears I searched for the Workspace that containts the Usage Metric report - it's usually called Report Usage Metrics Model.


Once you've connected you can create your own Usage Metric Report - you'll not be able to add calculated columns as it's a live connection.

 

Hopefully that helps.

 

Thanks,

MarkJames

@Anonymous,

 

I expected the Dataset to be named the same as the name we saved the Usage Metrics Report.

 

But I was able to find Report Usage Metrics Model! Thanks for the help man!!!

Anonymous
Not applicable

I figured it out:
 
ReportViews = COUNTROWS(SUMMARIZE(Views,Views[Date],Views[ReportGuid],Users[FamilyName]))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.