Forum Discussion
PiyushBQ
Helper I
6 years agoShow Peer Group
Hi Guys, I have a list of two columns. Category SKU Fruit Apple Fruit Pineapple Fruit Strawberry Vegetable Carrot Vegetable Brinjal Vegetable Cauliflower ...
- Anonymous6 years ago
Here's a solution based on Many2Many (higher granularities).
https://1drv.ms/u/s!ApyQEauTSLtOgYJUerVJHKwk6ECH9Q?e=7D1Ktr
The last one based on Virtual Relationships is in the making...
Best
D
Greg_Deckler
Community Champion
6 years agoPerhaps:
Measure =
VAR __SKU = SELECTEDVALUE('Table'[SKU])
VAR __Category = MAX('Table'[Category])
VAR __Table = FILTER(ALL('Table'),'Table'[Category] = __Category)
RETURN
CONCATENATEX(__Table,[SKU],",")
PBIX attached.
PiyushBQ
Helper I
6 years agoGreg_Deckler I added Unichar(10) to achieve the desired result but all it's doing is vertically stacking the string, rather than placing string values in separate rows.
Measure =
VAR __SKU = SELECTEDVALUE('Table'[SKU])
VAR __Category = MAX('Table'[Category])
VAR __Table = FILTER(ALL('Table'),'Table'[Category] = __Category)
RETURN
CONCATENATEX(__Table,[SKU],UNICHAR(10))