Forum Discussion
JackWren
Helper II
3 years agoAdd quotes around values - Concatenex()
Hi,
I am using concatenex to retrieve several values from a filter.
CONCATENATEX(VALUES(DIM_Products_Desc[Fruit]),DIM_Products_Desc[Fruit],",")
My result looks like this : banana,apple,peach
However, I need the names to be in quotation marks : "banana","apple","peach" etc...
Is there any way to do this?
Thank you 🙂
Hi JackWren
This should do the trick: a " character can be entered as two double-quote characters inside a string literal. A single double-quote character therefore appears as four " in a row 🙂
CONCATENATEX ( VALUES ( DIM_Products_Desc[Fruit] ), """" & DIM_Products_Desc[Fruit] & """", "," )
2 Replies
- OwenAuger
Super User
Hi JackWren
This should do the trick: a " character can be entered as two double-quote characters inside a string literal. A single double-quote character therefore appears as four " in a row 🙂
CONCATENATEX ( VALUES ( DIM_Products_Desc[Fruit] ), """" & DIM_Products_Desc[Fruit] & """", "," )- JackWren
Helper II
Thank you so much ! It works beautifully