Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I would like to identify the Date a Finding the Date a customer first purchased from a specific Contract.
I believe I would need to create a new table by joining the customer table and the contracts table. (there may be a better method)
My three tables:
Solved! Go to Solution.
Hi @belmore,
Which table you stored the date column? Please clarify this.
For your scenario, you can refer to below steps to create the merge table.
1. Enter into query editor.
2. Create a new query to merge customer and contract.
let Source = Table.Join(Contract,"Contract GroupID",Customer,"Customer GroupID"), #"Removed Other Columns" = Table.SelectColumns(Source,{"ContractID", "Contract GroupID", "CutomerID"}) in #"Removed Other Columns"
3. Save and apply the change.
4. Add calculator to lookup date from contract/customer table.
If Date stored in Contract table: FOD = MINX(FILTER(ALL(Contract),[ContractID]=EARLIER(Combine[ContractID])&&[Contract GroupID]=EARLIER(Combine[Contract GroupID])),[Date]) If Date stored in Customer table: FOD = MINX(FILTER(ALL(Customer),[CutomerID]=EARLIER(Customer[CutomerID])&&[Contract GroupID]=EARLIER(Customer[Customer GroupID])),[Date])
Result:
Regards,
Xiaoxin Sheng
Hi,
Creating the three column table should not be difficult. What i cannot understand is the FoD? In which of the 3 tables do you have the Date of purchase. Share the link from where we can download your data in an Excel/PBIX file with all 3 Tables.
Hi @belmore,
Which table you stored the date column? Please clarify this.
For your scenario, you can refer to below steps to create the merge table.
1. Enter into query editor.
2. Create a new query to merge customer and contract.
let Source = Table.Join(Contract,"Contract GroupID",Customer,"Customer GroupID"), #"Removed Other Columns" = Table.SelectColumns(Source,{"ContractID", "Contract GroupID", "CutomerID"}) in #"Removed Other Columns"
3. Save and apply the change.
4. Add calculator to lookup date from contract/customer table.
If Date stored in Contract table: FOD = MINX(FILTER(ALL(Contract),[ContractID]=EARLIER(Combine[ContractID])&&[Contract GroupID]=EARLIER(Combine[Contract GroupID])),[Date]) If Date stored in Customer table: FOD = MINX(FILTER(ALL(Customer),[CutomerID]=EARLIER(Customer[CutomerID])&&[Contract GroupID]=EARLIER(Customer[Customer GroupID])),[Date])
Result:
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |