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!View all the Fabric Data Days sessions on demand. View schedule
Hi there,
I am trying to figure it out how to associate between customer order date to customer address
this is the customer table:
Each customer has a number of records following an address update, distinguished by an update date.
this is the order table:
I would like to combine combine order table with the customer table to get the appropriate address for that order date.
the output sholud look like this:
Thanks in advanced.
Hi @Anonymous ,
Do you want to have the information in a table visualization so that you can have a list of adresses or do you want to have the information in a table so you can use it in your dataset in a different way?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix ,
I would like to the the information in the Orders Table so I can use it on the data set.
Hi @Anonymous ,
For this you need to create a custom function something similar to this:
(OrderDate as date, customerid as text) =>
let
Source = Customers,
#"Filtered Rows" = Table.SelectRows(Source, each [Dateupdated] <= OrderDate and [Customer ID] = customerid),
#"Sorted Rows" = Table.Sort(#"Filtered Rows",{{"Dateupdated", Order.Descending}}),
#"Kept First Rows" = Table.FirstN(#"Sorted Rows",1)
in
#"Kept First Rows"
This function gets the information from your customers table and then filter out the latest result based on the order date.
Then you just need to use it has a new column on your order table and expan the result for your needs:
In my example I only have city but you can expand all the columns.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!