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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HaveeshPerla_1
Helper II
Helper II

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
v-shex-msft
Community Support
Community Support

HI @HaveeshPerla_1,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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)

v-shex-msft
Community Support
Community Support

HI @HaveeshPerla_1,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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