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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.