Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
In powerbi I have table42 with 3 columns ( productId , amount , date) i need to creat a new table depends on this table(table42) with filter return only max date for each product and amount so i can calaculate the total amount
below my condation in sql
case when d.Date=(SELECT max(z.Date) FROM table42 zz WHERE d.prdAcctId=zz.prdAcctId)
I tried this but I don't get any result
= #table({"prdAcctId","date", "amount"},{table42[prdAcctId],table42[date],DATEVALUE(MAX('Table42'[DATE]))}
thanks in advance.
Solved! Go to Solution.
@Lily_DS Seems like you are mixing Power Query and DAX together. Here is a DAX solution. You would create a new table in the Desktop (not Power Query Editor)
Table = SUMMARIZE('Table42',[prdAcctId],"Date",MAX('Table42'[DATE]))
Hi @Lily_DS ,
I think you want "Group By" function in power query, please refer this link.
https://docs.microsoft.com/en-us/power-query/group-by
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Lily_DS ,
I think you want "Group By" function in power query, please refer this link.
https://docs.microsoft.com/en-us/power-query/group-by
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Lily_DS Seems like you are mixing Power Query and DAX together. Here is a DAX solution. You would create a new table in the Desktop (not Power Query Editor)
Table = SUMMARIZE('Table42',[prdAcctId],"Date",MAX('Table42'[DATE]))
thank you your comment really help me i catch💡 why always getting errors! i'm a beginner, do you have any resource clarify the Power Query and DAX ?
Check 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!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 44 |