Forum Discussion
Yasser92
8 years agoFrequent Visitor
Remove duplicate rows from a calculate table
Hi! Someone helps me to remove duplicate rows from a calculate Table and take the max value of "Delivery date" for each Order-Line ; In my case, this is the calculate table : Order...
- 8 years ago
Unique = SUMMARIZE ( Orders, Orders[Order], Orders[Line], "Delivery Date", MAX ( Orders[DelDate] ) )
Hope this helps,
David
v-yuta-msft
8 years agoCommunity Support
Hi Yasser92,
What I would add is there's a simpler way in power bi to achieve this. Click Editor Queries-> click on column [Order No], [Line No] and [Delivery Date]-> click Remove Rows-> select Remove duplicates.
Before:
After:
Hope it's helpful to you.
Jimmy Tao
- dedelman_clng8 years agoCommunity Champion
Yasser92 was asking to remove duplicates for Order-Line and displaying the Max delivery date. Query Editor would not be able to provide that (note that you have 3 rows for Order AAAB, Line 1)