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
Alejandroo
Microsoft Employee
Microsoft Employee

Filtering top 100 customers using a live cube connection

Hello, I have built a report using desktop with several views connecting to a Live Cube that I only have read access. I have created a lot of measures in my report and they all work fine, but I need to be able to create a slicer or filter of some sort where I filter the entire page to bring data for only the top 100 customers based on my Revenue Measure. The cube of course has many many dimensions and Customers is just one of them. I do not want to create a slicer where I have to manually select 100 customers, so is there a way to do this with a slicer or creating some sort of measure with DAX?

 

Thank you

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Alejandroo , You can use TOPN Filter at visual level

 

or create a measure on a revenue measure

 

M1=  calculate([Revenue], keepfilters(topn(10, allselected(Table[Customer]), [Revenue], desc)  ) )

 

TOPN: https://youtu.be/QIVEFp-QiOk
TOPN with Numeric Parameter -https://youtu.be/cN8AO3_vmlY?t=26448

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Alejandroo , You can use TOPN Filter at visual level

 

or create a measure on a revenue measure

 

M1=  calculate([Revenue], keepfilters(topn(10, allselected(Table[Customer]), [Revenue], desc)  ) )

 

TOPN: https://youtu.be/QIVEFp-QiOk
TOPN with Numeric Parameter -https://youtu.be/cN8AO3_vmlY?t=26448

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

Thank you very much, the Top N didn't work but the new measure work's perfect. I would've preferred the Top N but for some reason it does not apply the filter to the values, maybe the cube has some limitations on that. At some point I was even considering adding a slicer that allowed me to toggle between top 100, top 500, top 10, but I believe that was not possible either.

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