Forum Discussion
ASingh15
4 years agoNew Member
How to display duplicate values from one column based on values in another column
Hello Everyone, I am new to powerbi and trying to figure out the bese solution for grouping the the values in ID column based on values in the code column. Below is the table for reference. ID ...
- 4 years ago
Hi,
Please check the below picture and the attached pbix file.
One of ways is to use CONCATENATEX DAX function in a measure.
Code measure: = IF ( HASONEVALUE ( Data[ID] ), CONCATENATEX ( DISTINCT ( Data[Code] ), Data[Code], " & " ) )
Jihwan_Kim
Super User
4 years agoHi,
Please check the below picture and the attached pbix file.
One of ways is to use CONCATENATEX DAX function in a measure.
Code measure: =
IF (
HASONEVALUE ( Data[ID] ),
CONCATENATEX ( DISTINCT ( Data[Code] ), Data[Code], " & " )
)
- ASingh154 years agoNew Member
Thank you for your prompt response! This solution worked perfectly for my use case. I hope I learn tricks and trade from super users like you. I greatly appreciate your assistance!