Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I'm looking for some help please with this scenario which is too complex for me to resolve with my power query knowledge (in excel I would use Index/Match formula to achive it).
Here's what I have:
Table1 I have 2 columns:
In Table2 I have the below matrix:
is there a function that will allow me to get into Table1 a new column containing the value corrisponding to the Date/Country match?
Example:
if Date of which record was created = 24/07/2023 & Country = Lu - Luxemburg -> FW23 soft launch
if Date of which record was created = 24/07/2023 & Country = Be - Belgium-> SS23 W3
Thanks
Solved! Go to Solution.
Hi @Alice2222 ,
According to your description, here's my solution.
Table:
Table(2):
1.Add a custom column in Table:
let a=[Country Key] in
Table.SelectColumns(Table.SelectRows(#"Table (2)",(x)=>x[Date of Which Record Was Created]=[Date of Which Record Was Created]),{a})
2.Expand the new added column.
3.Add another custom column:
List.Max({[#"Custom.FR-France"],[#"Custom.DE-Germany"],[#"Custom.BE-Belglum"]})
4.Remove other unneeded columns, get the correct result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Alice2222 ,
According to your description, here's my solution.
Table:
Table(2):
1.Add a custom column in Table:
let a=[Country Key] in
Table.SelectColumns(Table.SelectRows(#"Table (2)",(x)=>x[Date of Which Record Was Created]=[Date of Which Record Was Created]),{a})
2.Expand the new added column.
3.Add another custom column:
List.Max({[#"Custom.FR-France"],[#"Custom.DE-Germany"],[#"Custom.BE-Belglum"]})
4.Remove other unneeded columns, get the correct result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |