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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.