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
Anonymous
Not applicable

Indicate if among Top X values

Hi all,

 

I feel a bit stuck with this: I want to indicate if a value is among the top 50 values. Idealy this should be dynamic, so that this calculated with the currently selected filters. Is this possible?

 

I do not want these items to show in a table but that the conditional column states "1" if it is among the top 50 and zero if it is not.

 

Thanks a lot for your help in advance!

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could take a look at this post, it has the same logic. 

https://community.powerbi.com/t5/Desktop/How-to-show-top-50-and-bottom-50-records-in-a-table/m-p/627790#M299933

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thanks for your patience and your explanation, will try to do better next @v-lili6-msft 🙂

 

There was an errorous relationship which caused the error, the calculation works within the if formula and with some small modification I also get the result I wanted.

 

Thanks again.

 

 

Anonymous
Not applicable

Thanks for your responses @v-lili6-msft & @Greg_Deckler !

 

Unfortunately this does not solve my case. I want to set up an additional column in which each row gets +1 if a certain criteria is met, like beeing among the top values. Then I also have other limits for which this column would add +1.

 

My approach was something like =If(Value > 'Mininum of TOP50 Values'; 1 ; 0 )

Since I cannot use calculate in an If formula (at least Power BI tells met that?) I am wondering if it is even possible what I am trying to do here?

 

Thanks again for your help.

hi, @Anonymous 

The logic is the same, you could use calculate in an If formula,

"Power BI tells met that?", there should be something wrong in your formula,

Please share some simple data sample and expected output. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could take a look at this post, it has the same logic. 

https://community.powerbi.com/t5/Desktop/How-to-show-top-50-and-bottom-50-records-in-a-table/m-p/627790#M299933

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

You want to use RANKX in a measure. 

 

https://docs.microsoft.com/en-us/dax/rankx-function-dax

https://dax.guide/rankx/


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.