Forum Discussion
How to return multiple values separated by commas (DAX)
- 6 years ago
Hi Anonymous ,
You can create the following table:
Table = ADDCOLUMNS ( SUMMARIZE ( FILTER ( Sold; Sold[Sold] = "YES" ); Sold[ClientID] ); "Source"; CONCATENATEX ( RELATEDTABLE ( Source ); Source[Source]; ", " ) )If you want a measure you should use:
Measure = CONCATENATEX(Source;Source[Source]; ", ")Then just filter out the Sold to yes on the filter of the visual.
Join both the tables on client id and use concatenatex on sold.table[source]
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
all source =concatenatex(sold.table[source])
Display it in a table or matrix along with client id
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin