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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi ,
Need help .I have Part # column in Power bi which has Part # in it.
I want to create the custom column , which checks if the current "Part#" is different from the "Part#" in the previous row. If it is different, it starts a new sequence with 1; otherwise, it continues the sequence by incrementing the previous index.
Please share Pbix. Thanks for helping. Appriciate your effort.
| Sequence | Part# |
| 1 | 3856 |
| 1 | 2345 |
| 2 | 2345 |
| 3 | 2345 |
| 1 | 1234 |
| 2 | 1234 |
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi @AnkurSharma ,
Please refer the steps from following article. I tried it and it works
https://www.analytics-tuts.com/ranking-by-groups-using-power-query-in-power-bi/
Thanks and Regards,
Sayali
Please mark the question solved when done and consider giving a thumbs up if posts are helpful!!
Proud to be a Super User!
HI @AnkurSharma ,
Please try following measure to create calculated column
Rankin =
RANKX(FILTER('Table','Table'[Part#] = EARLIER('Table'[Part#])),'Table'[Sequence],,ASC,DENSE)
Thanks and Regards,
Sayali
Please mark the question solved when done and consider giving a thumbs up if posts are helpful!!
Proud to be a Super User!
I want to create this in Transform data so that i can make unique column by combining Part# and sequence,
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 50 | |
| 42 | |
| 23 | |
| 20 |
| User | Count |
|---|---|
| 139 | |
| 116 | |
| 54 | |
| 37 | |
| 31 |