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
Hello
I have three table
ProdCategories
| CatID | Name | Status |
| AV1 | A | - |
| AV2 | B | - |
| AV3 | C | X |
| AV4 | D | X |
| AV5 | E | - |
ProdInventory
| ItemID | Item | CatID |
| 1 | AB | AV1 |
| 2 | AC | AV1 |
| 3 | AD | AV2 |
| 4 | AE | AV4 |
| 5 | AF | AV3 |
ProdRelease
| ItemID | Item | CatID |
| 2 | AC | AV1 |
| 4 | AE | AV4 |
| 6 | DC | AV5 |
| 7 | TU | AV5 |
ProdInventory and ProdRelease are not related, but both are connected to the ProdCategories by CatID
I want to add a column in the table ProdInventory that checks IF the ProdCategories Status = "X" If
Yes Does a Vlookup In table ProdRelease By ItemID IF find it shows"No" if not shows"Yes"
No shows "No"
Formula from Spreadsheet
=IF(G4="X", IF(ISERROR(VLOOKUP(K4, ProductionInventoryRelease!H: H,1, FALSE)), "No", "YES"), "No")
The result is:
| ItemID | Item | CatID | NewColumn |
| 1 | AB | AV1 | No |
| 2 | AC | AV1 | No |
| 3 | AD | AV2 | No |
| 4 | AE | AV4 | No |
| 5 | AF | AV3 | Yes |
Thanks in Advance
Solved! Go to Solution.
Hi @ofeliajesus ,
Please try this:
x = IF(RELATED(ProdCategories[Status])="X", If(ISBLANK(LOOKUPVALUE(ProdRelease[Item],ProdRelease[Item],ProdInventory[Item])),"Yes","No"),"No")
You said that you wanted to add a column to your table. Here is what it will look like after creating a calculated column.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @ofeliajesus ,
Please try this:
x = IF(RELATED(ProdCategories[Status])="X", If(ISBLANK(LOOKUPVALUE(ProdRelease[Item],ProdRelease[Item],ProdInventory[Item])),"Yes","No"),"No")
You said that you wanted to add a column to your table. Here is what it will look like after creating a calculated column.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
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 |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |