Skip to main content
Solved

maximum value from specific field

  • September 18, 2019
  • 3 replies
  • 55 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

View original
Did this help you find an answer to your question?

3 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • 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
ebygomm wrote:

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+39
  • Influencer
  • September 18, 2019
rakeshreddy0996 wrote:

could please brief in

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings