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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
eliasayyy
Memorable Member
Memorable Member

how to show top 5 according to selected parameter in column chart

hello everyone, i have created a field parameter for closer and opener,

i made measure based on selected measure i want with SWITCH and all is working fine,

but i cant use topn for one specific column because it will affect the other,

this is the measure i made

 

Chart Margin Selected Measure Reps = SWITCH(
    [Selected Rep],
    "Closing Rep",COUNTX(FILTER('Reps Measures','Reps Measures'[Reps Measures Order] =0),'Reps Measures'[Reps Measures]),
    "Opening Rep",COUNTX(FILTER('Reps Measures','Reps Measures'[Reps Measures Order] =0),'Reps Measures'[Reps Measures])
)

 

 

here is the field parameter for measures

annonymous1999_0-1675795711278.png

and here is result

annonymous1999_0-1675795824754.png

 

so how can i show top 5 closers if i select closing reps, and top 5 openers when i select opener reps??

1 REPLY 1
amitchandak
Super User
Super User

@eliasayyy , the measure you are using needs to be a TOPN Measure

 

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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