Forum Discussion
Karthikgayathri
3 years agoHelper I
undefined
rubayatyasmin i need output as text without the bracket ex : Head Office I used to write the code Right ( dim( customer) , search("(" , dim( customer) 1, len ( dim( customer )+1)-1) ...
tamerj1
3 years agoCommunity Champion
Karthikgayathri
Sorry. I misunderstood the requirement. Please try
Bill to Customer 2 =
VAR String = dimCustomer[Bill to Customer]
VAR Items = SUBSTITUTE ( SUBSTITUTE ( String, "(", "|" ), ")", "|" )
RETURN
PATHITEM ( Items, 2 )Karthikgayathri
3 years agoHelper I
In 2 nd image - see the input
1 st image I got the same output but instead of N/A showing blank .in output both N/A and head office need to display.
- Karthikgayathri3 years agoHelper I
tamerj1 plz reply
- tamerj13 years agoCommunity Champion
Bill to Customer 2 = VAR String = dimCustomer[Bill to Customer] VAR Items = SUBSTITUTE ( SUBSTITUTE ( String, "(", "|" ), ")", "|" ) RETURN COALESCE ( PATHITEM ( Items, 2 ), "N/A" )- Karthikgayathri3 years agoHelper I
Still N/A not displayed