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.
Hi,
I am trying to create a table of unique product codes and latest date using "New table" in Power BI. I need this so I can use the product code in a relationship.
So e.g ProductTable1
AG00001 16/10/2018
AG00001 15/10/2018
AG00001 14/10/2018
AG00002 10/10/2018
AG00002 12/10/2018
ProductTableLatest
AG00001 16/10/2018
AG00002 12/10/2018
If I use SELECTCOLUMNS as below I get 31/12/2018 for all dates.
ProductTableLatest = SELECTCOLUMNS(ProductTable1,"LatestDate",MAX(ProductTable1[ProductDate].[Date]), "Serial Number", ProductTable1[SerialNumber])
Appreciate any help !
Solved! Go to Solution.
@marculos Please try this as "New Table"
ProductTableLatest = SUMMARIZE(Test12InputCalcTable,Test12InputCalcTable[Product],"Latest",MAX(Test12InputCalcTable[Date]))
Proud to be a PBI Community Champion
This should work:
ProductTableLatest = SUMMARIZECOLUMNS ( ProductTable1[SerialNumber], "LatestDate", MAX ( ProductTable1[ProductDate].[Date] ) )
@marculos Please try this as "New Table"
ProductTableLatest = SUMMARIZE(Test12InputCalcTable,Test12InputCalcTable[Product],"Latest",MAX(Test12InputCalcTable[Date]))
Proud to be a PBI Community Champion
wow you guys are fast! many thanks for all your help 🙂 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |