How to write a fixed currency value in expression

Hi, I have a [ItemPrice] Column that is price of item. How can I run this expression without error:

MAX(LIST([ItemPrice], 0))

It show error “LIST has elements of mismatched types”. That’s because 0 is Decimal and [ItemPrice] is Price. So how can I use a fixed value of Price type. I’ve tried “$0” or “$0.0” or “0.0” but useless

Solved Solved
0 3 174
1 ACCEPTED SOLUTION

The first way is no use, the error LIST has elements of mismatched types is still there. But the second way is working. thanks for your help Steve

View solution in original post

3 REPLIES 3

My only solution for this is creating a virtual currency column (for example [ZeroDollar]), which formula is “=0”. Then use the expression:

MAX(LIST([ItemPrice], [ZeroDollar]))

Steve
Platinum 4
Platinum 4

Try (preferred):

MAX(LIST([ItemPrice], 0.0))

or:

MAX(LIST([ItemPrice]) + {0.0})

The first way is no use, the error LIST has elements of mismatched types is still there. But the second way is working. thanks for your help Steve

Top Labels in this Space