Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
18 | |
11 | |
7 | |
5 |