Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello,
I have 3 tables are, Data, Data1 and sale.
In data table the following column are code, product and country.
Data1 table- item, Product and country
sale table- Item, Code, Product and Country (Result).
I am trying to pull the country into sale table from Data table according to the code and product columns and country from Data1 table against the item.
I created VAR for both table but I don't know how to complete the VAR statement without IF function or is there any alternative function I could use it?
Data
| Code | Product | Country |
| BK010 | Apple | Uk |
| BK020 | Apple | Us |
Data1
| Item | Country |
| 321 | KPY |
| 322 | KPY1 |
Sale:
| Item | Code | Product | Country(Result) |
| 321 | TR299 | KPY | |
| 322 | YUI2O | KPY1 | |
| 123 | BK010 | Apple | Uk |
| 1234 | BK020 | Apple | Us |
Solved! Go to Solution.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 38 | |
| 32 |