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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nun
Resolver I
Resolver I

List of values based on the string in another column

Hello,

 

I have a table with two columns.

Column A  Column ID

France          1A32

Germany      2BBCC

France          354A4

France          66A97

Poland         AA543  

Poland        132VV

I would like to create a DAX formula.

The first one is the list of column ID based on the value of Column A

the result should be that a table visualizazion will show all the values in Colum ID just for France.

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Nun ,

You can use the following DAX to create a measure:

France = 
CALCULATE(
    CONCATENATEX('Table','Table'[ColumnID]," , "),
    'Table'[ColumnA] = "France"
)

And the final output is shown in the following figure:

vjunyantmsft_0-1699323007868.png

But in this case, it may be more convenient for you to create a slicer, just a suggestion:

vjunyantmsft_1-1699323051168.png

Best Regards,

Dino Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Nun ,

You can use the following DAX to create a measure:

France = 
CALCULATE(
    CONCATENATEX('Table','Table'[ColumnID]," , "),
    'Table'[ColumnA] = "France"
)

And the final output is shown in the following figure:

vjunyantmsft_0-1699323007868.png

But in this case, it may be more convenient for you to create a slicer, just a suggestion:

vjunyantmsft_1-1699323051168.png

Best Regards,

Dino Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors