Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
In a column we have duplicate records the first record will be "New" remaining all records will be "Old"
ID | type | OutPut column |
2 | average | New |
2 | average | Old |
4 | average | new |
5 | average | new |
6 | average | new |
6 | but | OLD |
6 | but | OLD |
7 | but | New |
7 | average | OLD |
7 | average | old |
7 | but | Old |
Add an index column: https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
Create a new column
new column =
var _min = minx(filter(Table, [ID] =earlier([ID])),[index])
return
if([index] =_min , "New", "Old")
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |