Skip to main content
Solved

maximum value from specific field

  • September 18, 2019
  • 3 replies
  • 81 views

rakeshreddy0996
Forum|alt.badge.img

I have field COST like below

SN.sFruitCOSTQuantity1Apple20per Peace2Banana3per Peace3Orange8per Peace4Mango50Per KG5Cherry250Per KG6Papaya40Per KG7Graps80Per KG8Dragon200Per KG9Kiwi30per Peace10CustedApple60Per KG11Fine Apple40per Peace12Green Apple25per Peace

Ā 

And i have to read MAX value in Cost field

Best answer by ebygomm

If you just want the max, the simplest way is to sort by COST in descending order and then use a sampler to sample the first feature. This will be the feature with the max value and the value in COST will be the max

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • September 18, 2019

If you just want the max, the simplest way is to sort by COST in descending order and then use a sampler to sample the first feature. This will be the feature with the max value and the value in COST will be the max


rakeshreddy0996
Forum|alt.badge.img

If you just want the max, the simplest way is to sort by COST in descending order and then use a sampler to sample the first feature. This will be the feature with the max value and the value in COST will be the max

could please brief in


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • September 18, 2019

could please brief in

You just need to change the Sampling Type to "First N Features" and keep the sampling rate as 1