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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
sribmc
Helper I
Helper I

Need help in custom column

I have 2 tables which contains states data.I want to create new custom column at table 2 to show matched values from table1

 

Table 1Table 2
AndhrapradeshTelangana(456)
TelanganaPunjab(45)
KarnatakaAndhrapradesh(67)
PunjabSikkim(55)
Sikkim

Karnataka(44)

 

Expected ouput
Table 2 MSTATE
Telangana
Punjab
Andhrapradesh
Sikkim
Karnataka
1 ACCEPTED SOLUTION
techies
Super User
Super User

Hi @sribmc please check this

if List.Contains(#"A"[table A], [table b]) then [table b] else null

Power BI & Microsoft Fabric
PL-300 | DP-600 | DP-700 Certified

View solution in original post

5 REPLIES 5
Rupak_bi
Super User
Super User

Hi @sribmc ,

Still not very much clear. What I understood from the sample data is, You want to display the state name from table 1 beside the state name in table 2. Here is the solution of that.

this is table 1

Rupak_bi_0-1739778384300.png

This is what I did in table 2
first extracted the text from the sate name column

Rupak_bi_1-1739778430215.png

Then refered the matched state name from table 1

Rupak_bi_2-1739778462817.png

If this is what you are asking , please accept as solution, else please elaborate your ask.

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
techies
Super User
Super User

Hi @sribmc please check this

if List.Contains(#"A"[table A], [table b]) then [table b] else null

Power BI & Microsoft Fabric
PL-300 | DP-600 | DP-700 Certified
Rupak_bi
Super User
Super User

Hi @sribmc ,

Your ask is not very much clear. however, to get data from table 1 , create a relationship between two tables on state name, and then you can get desired data from table 1 in table 2.  Else, plz elaborate your ask.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

@Rupak_bi Both the tables are already linked up at backend with state id but we need to show matched values beside each record.

on custom column each record of state value under table2 need to search all the values in table1 and what ever matched value with pattern then it should show beside the value of table2

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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