HomeForum
Welcome, Guest

Greater Than... Less Than... and between data tranformation functions
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Greater Than... Less Than... and between data tranformation functions

Greater Than... Less Than... and between data tranformation functions 1 year, 2 months ago #1926

  • Nautilus
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi there

I'm new to this forum. I've tried the manual and the online tutorials but can't find the answer to the following question...

I'd like to split a range of numbers into 3 "Bands"

1. If Price is less than $150 then show Sales Band A
2. If Price is between $350 and $500 then show Sales Band B
3. If Price is more than $500 then show Sales Band C

I know how to split the data using data validator my problem is that it should produce one file not three

Please help
Thanks in advance
Nau

Re: Greater Than... Less Than... and between data tranformation functions 1 year, 2 months ago #1927

  • admin
  • NOW ONLINE
  • Moderator
  • Posts: 2182
  • Karma: 12
You can use calculation like this one

if [F001]< 150 then
Result := 'Band A'
else if [F001]> 150 and [F001]< 500 then
Result := 'Band B'
else
Result := 'Band C';


Peter
Attachments:
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

"DBSL software makes it much easier for us to enable new customers for automatic order processing. This alone sets us apart from the competition."

M. Clock, Director,
Clock Logistics

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top