Rank Function
Hi,
How do I create a rank formula for the field, that only includes certain values from a row that meets certain criteria.
For example the below image is the example. I only want to rank and include in the range active expenses. Can someone please help me.
Regards
J Tech
If my response has helped you in any way or provided a solution to your problem, please consider supporting the community by marking it as Insightful, Vote Up, or Awesome. Additionally, you can mark it as the accepted answer, which will make it easier for others to find a solution or get help with a similar issue in the future. Your support is greatly appreciated!
Best Answer
-
In order for it to work, I had to create a helper column that removed the Expense if the Status wasn't Active (mine isn't formatted as $, but it can be)
"Value Expense" =IF(STatus@row = "Active", [Total Expense]@row, "")
Then I created the Ranking column looking at the Value Expense Column:
=IF(STatus@row = "Active", RANKEQ([Value Expense]@row, [Value Expense]:[Value Expense]), "")
If I didn't eliminate the "Obsolete" value, it was included in the ranking, even if it didn't show in the column (see the numbers in the Expense Rank column)
Answers
-
In order for it to work, I had to create a helper column that removed the Expense if the Status wasn't Active (mine isn't formatted as $, but it can be)
"Value Expense" =IF(STatus@row = "Active", [Total Expense]@row, "")
Then I created the Ranking column looking at the Value Expense Column:
=IF(STatus@row = "Active", RANKEQ([Value Expense]@row, [Value Expense]:[Value Expense]), "")
If I didn't eliminate the "Obsolete" value, it was included in the ranking, even if it didn't show in the column (see the numbers in the Expense Rank column)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!