I am using the concat function in QGIS 3.16.6 on Mac. I want to join several cell values into one new cell. With the concat function it is ignoring cells with NULL but it doesn't separate the cell values. If i'm doing the separator it is not connected to the NULL cell value. I also tried to do it with the coalesce but with the same result
concat("A"+',',"B"+',',"C"+',',"D")
coalesce("B" ,'(nodata)')|| ',' ||
coalesce( "C" ,'(nodata)')|| ',' ||
coalesce("D" ,'(nodata)'))
With this function I still get an separator eventhought there is no value in the cell. The separator should be linked if there is a value or not. Hear is a picture of my data. In the column Join is want i always get as result and the column wanted is how it should look like