Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi guys,
Could you help me with difficulty bellow?
I need create a sequence beginning from 1 according with the column “Date", but when the column DONOR_ID change I need to restart the sequence from 1 again.
Hi, @Syndicate_Admin your sequence is in "sequence" column after this step
result =
Table.Combine(
Table.Group(
source_table, {"DONOR_ID"},
{{"all", each Table.AddIndexColumn(Table.Sort(_, {"date"}), "sequence", 1, 1),
type table [date=nullable date, DONOR_ID=nullable text]}}
)[all]
)
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 5 | |
| 4 | |
| 4 |