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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Problems with DAX measure : Calculate filters and TOPN

Hello, 

 

I am trying to filter the gross contracts by all these filters  and the only thing that I am missing is that after all this filters applied I need just the top 10 of them. I need this as a dax measure so I can divide it by other measure after.

 

 

Measure Total Gross Contract = CALCULATE(SUMX('ACQ BI','ACQ BI'[Gross Contract]),'ACQ BI'[CONTRACT.REC.1]=1,'CONTRACTS BI'[NUM.OF.ASSETS]>0,'CONTRACTS BI'[UATB.ANNUAL.BLENDED.YIELD.DAT]>0,'ASSETS BI'[UATB.PROGRAM.TYPE]<>6,'ACQ BI'[PROGRAM.TYPE]<>10)

 

Thanks for your help

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

 

Please share some sample data so that we can coding formula and testing on it.

 

Regards,

Xiaoxin Sheng

jdbuchanan71
Super User
Super User

Give this a try.

 

Total Gross Contract Top 10 =
CALCULATE (
    [Total Gross Contract],
    TOPN ( 10, 'ACQ BI', [Total Gross Contract], DESC )
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors