Help with IF command

Occasional Contributor

In the rows I have many many observations

In the columns I have variables X & Y.

X takes values 1-5000, and Y is some price.

I want to create a 3rd column which takes values:

1 if the price is in the top 5% of prices for whatever X value that row has.

0 otherwise

E.g. if the row is X=1, Y=9999, I want the 3rd cell to be =1 if out of all rows with X=1, 9999 is in the top 15% of Y's in those rows.


Hope that makes sense.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies