Forum Discussion
Anonymous
4 years agoNot applicable
Find duplicate column using max value fom another column and create a new column coded as 0 or 1
Hi, Need to create a new column which finds the duplicates and gives a one to those duplicates which has the highest value in a different column. If 2 duplicates have the highest value give 1 only t...
- Anonymous4 years ago
Hi Anonymous ,
Create a column as below.
Column = var _max = CALCULATE(MAX('Table'[Sales]),FILTER('Table','Table'[cust]=EARLIER('Table'[cust])&&'Table'[Report_month]=EARLIER('Table'[Report_month]))) return IF('Table'[Sales]=_max,1,0)Best Regards,
Jay
Whitewater100
Solution Sage
4 years agoHello:
Please check this out. If this analysis were to go into multiple years we would neeed to change month column to Year&Month, for now it is just answering the question as presented. Hope it helps.
https://drive.google.com/file/d/1vXfrY_ha5Sik7idM_F3hAs9EVSHiStiA/view?usp=sharing