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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
dthompsonKairos
Helper II
Helper II

Exclude data from Semantic Models.

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.

 

MostViewed =
   VAR MaxRankID =
         CALCULATE (
    VALUES ( 'Report rank'[ReportId] ),
    FILTER ( ALL ( 'Report rank'[ReportRank] ), 'Report rank'[ReportRank] = MAX ( 'Report rank'[ReportRank] )  )
         )
   
   RETURN
         lookupvalue('Reports'[ReportName],'Reports'[ReportGuid],MaxRankID)
 
 
Thx
 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

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.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.