Forum Discussion
khappersett
Resolver I
9 years agoConcatenate Columns If Same ID
I have a table with rows for item ID, catalog name, and catalog year. Some items are released in multiple catalogs so they have multiple rows. I am trying to create a new measure that will concatenat...
Anonymous
9 years agoNot applicable
Hi khappersett,
I think you need to filter the records which has the same id, then use this as the source of concatenate function.
All Year = CONCATENATEX(FILTER(ALL('sample'),[Item ID]=EARLIER('sample'[Item ID])),[Catalog Year],",")
Regards,
Xiaoxin Sheng
filipe197
8 years agoFrequent Visitor
Hello Anonymous
What if additionally you have for the same Item ID duplicate Catalog Year? How could you consider in your formula only the unique values? I mean, if item ID "A" have in column "Catalog Year" the values 2012,2012 and 2014 i just want to consider in "All year" this result: 2012,2014.
Thanks,
filipe197
- Ashish_Mathur8 years ago
Super User
- filipe1978 years agoFrequent Visitor
- Ashish_Mathur8 years ago
Super User
Hi,
I have done this using Power Query and then pushed the data into the Data Model. Will this be OK with you?