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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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