Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am working with the Power Bi service Report usage Semantic model.
I am trying to create a series of Cards like Most Viewed Report, and variations on that combined with the totasl views, user views, etc. and depend on Ranking.
The problem is that the highest ranked report in my smallish company is the power bi usage report I'm working on. I wish to exclude that from the report usage data metrics.
But, the data is all in a Semantic model. So I have no access to it via the Transform window where I would normally find and exclude a specific row.
This measure shows the most viewed report via the Report Rank table in the model. How can I modify this to exclude a specifc ReportID. I have the specific ID (GUID) value.
Solved! Go to Solution.
You can add a step to get the max excluding your GUID.
MostViewed =
VAR ExcludeID = "Your_GUID_Here"
VAR MaxRank =
CALCULATE (
MAX ( 'Report rank'[ReportRank] ),
ALL ( 'Report rank' ),
'Report rank'[ReportId] <> ExcludeID
)
VAR MaxRankID =
CALCULATE (
VALUES ( 'Report rank'[ReportId] ),
ALL ( 'Report rank' ),
'Report rank'[ReportRank] = MaxRank
)
RETURN
LOOKUPVALUE ( 'Reports'[ReportName], 'Reports'[ReportGuid], MaxRankID )
Alternatively, you can filter the GUI out at the report level and try ALLSELECTED instead of ALL in your measure.
You can add a step to get the max excluding your GUID.
MostViewed =
VAR ExcludeID = "Your_GUID_Here"
VAR MaxRank =
CALCULATE (
MAX ( 'Report rank'[ReportRank] ),
ALL ( 'Report rank' ),
'Report rank'[ReportId] <> ExcludeID
)
VAR MaxRankID =
CALCULATE (
VALUES ( 'Report rank'[ReportId] ),
ALL ( 'Report rank' ),
'Report rank'[ReportRank] = MaxRank
)
RETURN
LOOKUPVALUE ( 'Reports'[ReportName], 'Reports'[ReportGuid], MaxRankID )
Alternatively, you can filter the GUI out at the report level and try ALLSELECTED instead of ALL in your measure.
User | Count |
---|---|
79 | |
74 | |
44 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |