Forum Discussion
Anonymous
7 years agoNot applicable
How to remove leading commas from the concatenated String
Hi Team, I have a concatenated text string like ",176.22.191.10,None,254.255.244.0" . This is a concantenated value comprises of certain values. Customer doesnt want to see the Leading comma at t...
SharathS03
1 year agoNew Member
Hi All,
Leading commas are the result of the BLANK values table values which we are trying to concatenate. For example if I am trying to concatenate values in a table column which contains BLANK, the first value in the concatenated string is blank because of which we dont see the value but just the "," (comma) after that. The solution for this is to filter out blank in the first step.
Quarters |
| Q1 |
| Q2 |
| Q3 |
If I concatenate this Quarters column values, using the formula
CONCATENATEX( VALUES (Table[Quarters]),Table[Quarters],",")
It will return ,Q1,Q2,Q3
The easiest way to tackle this is to update the formula to EXCLUDE Blank values
CONCATENATEX( CALCULATETABLE(VALUES (Table[Quarters]),Table[Quarters]<>BLANK()),Table[Quarters],",")
This will return Q1,Q2,Q3