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
In M
I have a fact query with many keys in. Lets Call it "Fact". I have several querys that have the matching description
LKUP_Product which consists of [ProductID], [ProductName],[Product Colur]
LKUP_Customer which consists of [CustomerD], [CustomerName]
I do not want to Merge the lookups. Is there a way of using
list.Buffer to get a list of ProductID, ProductName
Then a way to compare Fact.ProductID to List of Products to get the ProductName
I am sure I have seen this before but cant find my notes or the example again
Many thanks
Think I will try the solution from @AlienSx . This is kind of what I am looking for,. My users are a little crazy and we may need to have these links across multiple tables. I like to keep the data model as simple as possible. That way there is less chance of another Dev making a mess or the user selecting unrelated items (this happened yesterday and it is hard to explain to the user why there is an issue)
Thanks both
M
If you're going to be loading these tables to a data model, you can just use a one to many relationship and link them that way. Otherwise I would add a custom column using each Table.FindText.
--Nate
Hi, @ells69
1. Create a record of products as p_rec = Record.FromList(LKUP_Product[ProductName], LKUP_Product[ProductID])
2. add new column to Fact (or transform existing) Table.AddColumn(Fact, "ProductName", each Record.FieldOrDefault(p_rec, [ProductID], "none"))
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 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |