Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
meschoudhary
Frequent Visitor

Concatenate only unique strings in measure

I'm struggeling with a measure. I have data table as shown below with Country, 6 years data (2019-2024) & 5 differeten wind coloums. What is want is show concatenated unique wind values for each country. as show in the output table below.

 

Data Table

Country        Year      Wind 1       Wind 2           Wind 3       Wind 4        Wind 5

Russia2019A(0.16)C(0.12)C(0.12)C(0.12)B(0.14)
Russia2020A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Russia2021A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Russia2022A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Russia2023A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Russia2024A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Turkey2019A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Turkey2020A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Turkey2021A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Turkey2022A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Turkey2023A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)
Turkey2024A(0.16)A(0.16)A(0.16)B(0.14)B(0.14)

 

 

Output -

 

 RussiaTurkey
Wind 1A(0.16)A(0.16)
Wind 2C(0.12),A(0.16)A(0.16)
Wind 3C(0.12),A(0.16)A(0.16)
Wind 4C(0.12),B(0.14) B(0.14)
Wind 5B(0.14)B(0.14)
1 REPLY 1
v-evelk
Employee
Employee

Hello,

 

Looks like you need to use DAX, but this question is out of our expertise because it is a feature of Power Bi Desktop.

Please, try to use DAX and if you have some questions regarding it you can ask them in the Desktop thread.

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors