Forum Discussion
Concatenate distinct values from column in Measure
Hello,
I can't figure out why this approach doesn't work for me. I have one table with just two fields, CallSign and Frequency. I am creating a measure called AllFreq with the following equation AllFreq = CONCATONATEX(VALUES('FR'),'FR'[Frequency]," ,"). When I do a visual of CallSign and AllFreq, I get examples like this: 453.05 ,453.05 ,453.05 ,453.275 ,453.275 ,453.275 ,453.45 ,453.45 ,453.45 ,453.725 ,453.725 ,458.05 ,458.05 ,458.05 ,458.275 ,458.275 ,458.275 ,458.45 ,458.45 ,458.45 ,458.45 ,458.725 ,458.725. You can see there are many duplicates. And, there's no differenece if I remove the VALUES function: 453.05 ,453.05 ,453.05 ,453.275 ,453.275 ,453.275 ,453.45 ,453.45 ,453.45 ,453.725 ,453.725 ,458.05 ,458.05 ,458.05 ,458.275 ,458.275 ,458.275 ,458.45 ,458.45 ,458.45 ,458.45 ,458.725 ,458.725.
Can someone help? Is this old functionality that has since been updated?
Thanks,
Joe Ross
Hi josephjross2
I think the problem is with VALUES( 'FR' ) - you passed a table as an argument but VALUES expected a column.
try this
Measure =
CONCATENATEX(
VALUES( 'FR'[Frequency] ),
'FR'[Frequency], ", "
)
Mariusz
If this post helps, then please consider Accepting it as the solution.
- josephjross26 years agoNew Member
Perfect! Thanks so much Mariusz ! I thought that had to be a whole table and not a single field. I appreciate the response and the help!
Joe