Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Xolink1389
Creator
Creator

MAKE EXPRESSION IN RANGE

hello i wanna know if its possible make this expression in range

 

sum({<Cuenta={1101100101,1101100102,1101100103,1101100104,1101100105},
ID_Clase,MONEDA,NUMMES={">=$(=(Max(NUMMES)-$(vMinFecha2))) <=$(=Max(NUMMES_C))"}>} ImporteDMBTR)

 

for example make sum({<mid(Cuenta,1,4)={1101}, its possible?

 

i try this also too, but nothing

sum({<Cuenta={"$(=Mid(Cuenta,1,4))<=1101"},
ID_Clase,MONEDA,NUMMES={">=$(=(Max(NUMMES)-$(vMinFecha2))) <=$(=Max(NUMMES_C))"}>} ImporteDMBTR)

Labels (2)
1 Solution

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

 My bad, I focused on the equal but I forgot the rest of the expression.
Try with:

sum({<Cuenta={"=Mid(Cuenta,1,4)<=1101"},
ID_Clase,MONEDA,NUMMES={">=$(=(Max(NUMMES)-$(vMinFecha2))) <=$(=Max(NUMMES_C))"}>} ImporteDMBTR)


Else $(Mid...) will be evaluated globally and not line by line which doesn't work.

View solution in original post

4 Replies
vincent_ardiet_
Specialist
Specialist

Try maybe with an equal:
sum({<Cuenta={"=$(=Mid(Cuenta,1,4))<=1101"},
ID_Clase,MONEDA,NUMMES={">=$(=(Max(NUMMES)-$(vMinFecha2))) <=$(=Max(NUMMES_C))"}>} ImporteDMBTR)

Xolink1389
Creator
Creator
Author

 

on syntaxis maybe right but still not wotk

Xolink1389_1-1696355642681.png
 
i fixed the expression adding an Min but still not work

Xolink1389_2-1696355936769.png

maybe got something with the fact that "Cuenta" contains 10 digits? im trying to make the range more short, to not put something like this  sum({<Cuenta={">=1101000000 <=1103999999"} this case totally works but i dont wanna use it like that

 

 

 

 

 

vincent_ardiet_
Specialist
Specialist

 My bad, I focused on the equal but I forgot the rest of the expression.
Try with:

sum({<Cuenta={"=Mid(Cuenta,1,4)<=1101"},
ID_Clase,MONEDA,NUMMES={">=$(=(Max(NUMMES)-$(vMinFecha2))) <=$(=Max(NUMMES_C))"}>} ImporteDMBTR)


Else $(Mid...) will be evaluated globally and not line by line which doesn't work.

Xolink1389
Creator
Creator
Author

Thanks a lot work magicly 😄 perfect for what a i was looking for 😀