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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
stefantaust
Helper I
Helper I

concatenate a filtered column

Hello, I have two tables that aren't linked. How can I concatenate a filtered column from each table to create a new table with a column containing the result. e.g., k30307599999

stefantaust_0-1750747064893.png

Thanks, Stefan

1 ACCEPTED SOLUTION
Demert
Resolver III
Resolver III

Hi @stefantaust ,

 

The filter context that you are giving in the report page can't transfer to table view where you create a new table. What you can do is create a measure that concatenate these two fields together and returns the value for example:

SELECTEDVALUE('Table'[Name]) & SELECTEDVALUE(Parameter[Parameter])

 

Giving the following output:

Demert_1-1750750003540.png

 

 

View solution in original post

2 REPLIES 2
Demert
Resolver III
Resolver III

Hi @stefantaust ,

 

The filter context that you are giving in the report page can't transfer to table view where you create a new table. What you can do is create a measure that concatenate these two fields together and returns the value for example:

SELECTEDVALUE('Table'[Name]) & SELECTEDVALUE(Parameter[Parameter])

 

Giving the following output:

Demert_1-1750750003540.png

 

 

rajendraongole1
Super User
Super User

Hi @stefantaust  - create a new table with a combined result like K30307599999

 

rajendraongole1_0-1750747648855.png

 

 

ConcatenatedMatCode =
SELECTCOLUMNS (
    CROSSJOIN (
        VALUES(tab1[MatCodePrefix]),
        VALUES(tab2[MatNumberSuffix])
    ),
    "FullMatCode", tab1[MatCodePrefix] & tab2[MatNumberSuffix]
)
 
Hope the above logic helps.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.