Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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 1 | Table 2 |
| Andhrapradesh | Telangana(456) |
| Telangana | Punjab(45) |
| Karnataka | Andhrapradesh(67) |
| Punjab | Sikkim(55) |
| Sikkim | Karnataka(44) |
| Expected ouput |
| Table 2 MSTATE |
| Telangana |
| Punjab |
| Andhrapradesh |
| Sikkim |
| Karnataka |
Solved! Go to Solution.
Hi @sribmc please check this
if List.Contains(#"A"[table A], [table b]) then [table b] else null
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
This is what I did in table 2
first extracted the text from the sate name column
Then refered the matched state name from table 1
If this is what you are asking , please accept as solution, else please elaborate your ask.
Hi @sribmc please check this
if List.Contains(#"A"[table A], [table b]) then [table b] else null
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.
@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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |