Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Greetings, thank you in advance for looking at this.
I am guessing this is easy to do, but I am just having a brain cramp.
I have two tables,
Table 1 ist of reports...so it is Report ID and Report name
Table 2 is a list of Report views...so it is Report ID, User ID and Date
My goal is to have an output that has Report ID, User ID, Total Views
Where I am having difficulty right now is I want each Report ID to be listed once, the User ID to be the User ID that had the most views for that report and then their total views for that report. (I hope that is clear)
The page needs to have a date filter available because they will want to look at the data by week, month and quarter.
I am hoping someone can help me with the creation of this visual. Again, Thank You for looking and any insight you have.
Solved! Go to Solution.
This really comes down to modeling. Here's what I've set up and seems to achieve what I understand your requirement to be.
My Sample Data:
My model:
DAX measures:
View Count = COUNTROWS( ReportViews )
View Rank = IF( ReportViews[View Count] = 0 , BLANK() , RANKX( ALL( 'dim Users'[UserID] ) , ReportViews[View Count] , , DESC , Skip ) )
Output:
To only see the user with the most views, I have a filter on the table visual for the rank:
This really comes down to modeling. Here's what I've set up and seems to achieve what I understand your requirement to be.
My Sample Data:
My model:
DAX measures:
View Count = COUNTROWS( ReportViews )
View Rank = IF( ReportViews[View Count] = 0 , BLANK() , RANKX( ALL( 'dim Users'[UserID] ) , ReportViews[View Count] , , DESC , Skip ) )
Output:
To only see the user with the most views, I have a filter on the table visual for the rank:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |