Share Sample data.
Where as you can do number formatting of field however you want and then do applymap.
For ex. You can write your Mapping load as
Num(Field,'#,##0.000') as Field, // You can change this according to number of decimal you require.
Else same thing you can do with Second table where you are applying apply map.
Applymap('Map_Table',num(Field,'#,##0.00')) as Newfield
Hi Shraddha Gajare,
thanks for the reply.
I added an Excel file with sample data. Do i have to publish his as well?
The number formatting i tryed already as well, but sadly then the first value, depending on the load will be returned by lookup.
My aim is to pick the Closes number of the 3 decimal to the 2 decimal placed number.
Round the value you are looking up in the applymap call, like this
ApplyMap('Mapping_Table', Round(Source_Field, 0.01))
This assumes that all the rounded-to-2-decimal source values exist in the mapping file. If the mapping does not include all the needed 2 decimal numbers, then you may have to look to interval matching rather than a mapping lookup,
Thanks for the reply.
But what do you do, as the Source field is already set with 2 decimal places.
In My case the Mapping Field is 3 Didget and with rounding this, the values will multiplicate.
Example: Source Field 0.04
Mapping LOAD * INLINE [
"Distance to Map", "Return Parameter A"
Which value will Applymap return as the full Value does not exist.
My wish would be the return the Closes number to 0.04 that would be in my case 0.041.
Closest.xlsx 1.2 MB
Hi Shlvanand Kamath,
thanks for your reply.
The idea wit the interval match i had as well.
But after the interval match, what would your suggestion:
- with multiple results within the range?
How do I get the closes value?
In this case i need to add after the intervalmatch a extra column with the Minimum difference.
Afterwards i need to match the values again. Lot of rubbish will be generated that will be thrown away afterwards.
- with no result within the range? Try and error with the respective rangesize?
Isn't there an easier way?