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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Ekta_dq
New Member

Optimising the report

Hi,

 

I am trying to optimise my report which is fetching the output for two months but not fetching the output for two years. The measure that needs to be optimsed is below:

/*

Rank =
IF (
    NOT (
        ISBLANK ( [Total Amount Paid] )
    ),
  
   RANKX(
    FILTER (
        SUMMARIZE (
            ALL ( 'Fact Claim' ),
            'Fact Claim'[DOS_NETWORK_LICENSE_KEY],
              'Fact Claim'[PROVIDER_KEY],
            'Provider'[PROVIDER_KEY],
            Provider[Name],
            Provider[Provider GID],
'Network License'[NETWORK_LICENSE_KEY],
            'Network License'[Network License Number]
        ),
        Provider[PROVIDER_KEY]='Fact Claim'[PROVIDER_KEY] && 'Network License'[NETWORK_LICENSE_KEY]='Fact Claim'[DOS_NETWORK_LICENSE_KEY]
    ),
    [Total Amount Paid],,,Dense
)
)
 
Can you please let me know that how can we re-write this measure in order to make it more optimised?
 
Thanks,
Ekta
2 REPLIES 2
quantumudit
Super User
Super User

Always use ADDCOLUMNS() with SUMMARIZE() and please consider only specific columns (needed for ranking) in the first part of FILTER() function to create the virtual table

amitchandak
Super User
Super User

@Ekta_dq m

 

'Fact Claim'[DOS_NETWORK_LICENSE_KEY],
'Fact Claim'[PROVIDER_KEY],
'Provider'[PROVIDER_KEY], // This only need if you want plot rank against Provider
Provider[Name], // is it above 'Provider'[PROVIDER_KEY], again need rank against Provider[Name],
Provider[Provider GID], // same as avove
'Network License'[NETWORK_LICENSE_KEY], //This only need if you want plot rank against Network License
'Network License'[Network License Number] // do want rank against this column.

 

reconsider some of those if they are needed or not

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.