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

Getting Top 3 values dynamically as there's no Top N filter

Hi Team,

I'm building a report related to Citrix workspaces. In which, I've made visuals which would be sagregated based on versions. Latest versions as =>23, Versions = 22, lower Versions as<= 21. All these values have been give through filters as a static approach.

But There's a requirement where, if the versions have been updated to some 28 , 27 and 26. these versions have to be dynamically updated by replacing the above mentioned values.  I thought of trying Top N flter. But there's no Top N option showing to my versions column. So, how do I acheive this dynamically?

 

HaveeshPerla_1_0-1707894117960.png

 

Regards,

Haveesh

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

HI @Anonymous,

You can write measure expression to use Dax functions get the max value of versions, and use it as condition in Dax expression to compare with records and return flag.

After these steps, you can use it on 'visual level filter' to filter records.

Applying a measure filter in Power BI - SQLBI
Regards,

Xiaoxin Sheng

View solution in original post

lbendlin
Super User
Super User

These are standard patterns

 

1st:  TOPN(1)

2nd: TOPN(1,TOPN(2),DESC)

3rd: TOPN(1,(TOPN(3),DESC)

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

These are standard patterns

 

1st:  TOPN(1)

2nd: TOPN(1,TOPN(2),DESC)

3rd: TOPN(1,(TOPN(3),DESC)

Anonymous
Not applicable

HI @Anonymous,

You can write measure expression to use Dax functions get the max value of versions, and use it as condition in Dax expression to compare with records and return flag.

After these steps, you can use it on 'visual level filter' to filter records.

Applying a measure filter in Power BI - SQLBI
Regards,

Xiaoxin Sheng

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.