Expresion decimals

Hello!

im having trouble with the next expression:

LIST(
IF(
OR( [PH]<1.5 , [PH]>9 ),
(15) , (0) )
3, 4)

15 on Bold, its really 1,5 (decimal) but i cant use โ€œ,โ€ or โ€œ.โ€ because it gives me error. (
LIST has elements of mismatched types)

The result should be:
(1.5 , 3, 4) or
(0, 3,4)

15 on Bold, its really 1,5 (decimal) but i cant use โ€œ,โ€ or โ€œ.โ€ because it gives me error.

Solved Solved
0 9 225
1 ACCEPTED SOLUTION

1.5 is a decimal value, but 3 and 4 are not, try (1.5,3.0,4.0)

View solution in original post

9 REPLIES 9

Steve
Platinum 4
Platinum 4

Thank you very much Steve for your attention. I had already read that document, but it still does not resolve my concern.

Steve
Platinum 4
Platinum 4

3X_3_b_3b68d8fdbf907b80546bd0c9ee376c8d93eead44.png

3X_a_c_ac1955d40573beb0d2bb652c122e30c32e9c8c5c.png

There is the column โ€œPHโ€ which is of type DECIMAL.

3X_0_e_0e369dc6cacb18547bbd39caa0dd31e58a0c6ea0.png

There is other column โ€œSUM. RIESGOSโ€ which is of type ENUM with Base Type โ€œDECIMALโ€
.
3X_f_d_fd2c870b582bf093538ba1f908951db739dd48b4.png

Finally, with actions, calculates the content for the โ€œSUM. RISKSโ€ COLUMN.

3X_d_f_df43c9796c945762bead1ebf1df5925902d443ad.png

The problem is that the list I am trying to build for the field [SUM. RISKS] does not accept the value of โ€œ1.5โ€ (decimal) as one of the elements, despite the fact that it is DECIMAL as Base Type

0 is a Number, 0.0 is a Decimal.

Hi Steve, i know that, but my problem its not 0 (in fact it is included in the list without any problem as is as), my problem is โ€œ1.5โ€

Hello, I change the question. is it not possible to create a list of decimal values?

LIST (1.5 , 3, 4) ------> ERROR
LIST (1,5 , 3 , 4) ----> (1 , 5 , 3, 4)

1.5 is a decimal value, but 3 and 4 are not, try (1.5,3.0,4.0)

Solved.

I was confused by a misinterpretation of this:
3X_6_4_6408b934193ea0e7590e0f38fd3a6341008334a8.png

I entered all values as decimal and problem solved.

THANK YOU VERY MUCH!!

Top Labels in this Space