Forum Discussion
pawelj795
Post Prodigy
5 years agoMark rows with the latest value
Hi, I have a data table like below. Now, I want to mark rows, which meet these conditions: They contains duplicate values in both columns at the same time: parent_product_tmpl_id, produc...
- 5 years ago
Hi pawelj795 ,
Please refer to my .pbix file.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
pawelj795
Post Prodigy
5 years agoamitchandak
Thanks for your response.
Unfortunately, your column doesn't work.
My main goal is to filter out rows, which are duplicates with the earliest values, however I want to keep the other rows, which don't meet the first condition
amitchandak
Super User
5 years agopawelj795 , try Id in place of date
New column =
var _max = maxx(filter(Table, [parent_product_tmpl_id] = earlier([parent_product_tmpl_id]) && [product_tmpl_id] = earlier([product_tmpl_id])),[ID])
return
if([ID] =_max , 1, 0)