Forum Discussion
taher
9 years agoHelper II
concatenate Values repeatly
Hi All, as you can see in the photo, I have a table of two columns. StoreId: every value is repeated three times because every value has three TagId. I'm trying to create a new column which con...
- 9 years ago
Hi Taher,
If you want it in DAX, you could try these two options.
Option 1: there will be duplicate rows.
New = CALCULATE ( CONCATENATEX ( 'Table1', 'Table1'[TagId], "-" ), FILTER ( 'Table1', 'Table1'[StoreId] = EARLIER ( Table1[StoreId] ) ) )Option 2: create a new table.
Table = SUMMARIZE ( 'Table1', 'Table1'[StoreId], "NewColumn", CONCATENATEX ( 'Table1', 'Table1'[TagId], "-" ) )Best Regards!
Dale
taher
9 years agoHelper II
Hello v-jiascu-msft,
hier you find a full sample project.
ParentTagID = 150 =>Boss
ParentTagID = 140 =>Worker
ParentTagID = 130 =>Student.
https://www.4shared.com/s/fWHB5XsRDei
as you can see when I filter due to StoreName, the three Boss, worker and the student are appearing in the three slicers.
It should just on of them for each slicer according to its PaentTagID.
Thanks a lot :)
v-jiascu-msft
9 years agoMicrosoft Employee
Hi taher,
I can't download the file from your URL. The download button didn't work. Could you please use GoogleDrive or OneDrive?
Best Regards
Dale