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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I would like to combine rows that are identical and neighboring, see example below.
The order of the entries matters, since they have been listed chronologically.
Removing duplicates doesn't work, since the blue and grey rows are identical yet not neighboring.
I'd be grateful for any ideas how this could be solved 🙂
Kind regards,
Jama1234
Solved! Go to Solution.
@Anonymous
Hi
Select all the 3 columns>>>From the Transform Tab>>Group BY.
In the formula bar, just modify the formula by adding the text in red font below
= Table.Group(#"Changed Type", {"ID", "State", "Previous State"},
{{"ALL", each _, type table [ID=text, State=text, Previous State=text]}},GroupKind.Local)
@Anonymous
Hi
Select all the 3 columns>>>From the Transform Tab>>Group BY.
In the formula bar, just modify the formula by adding the text in red font below
= Table.Group(#"Changed Type", {"ID", "State", "Previous State"},
{{"ALL", each _, type table [ID=text, State=text, Previous State=text]}},GroupKind.Local)
Works perfectly!
Thank you
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 20 | |
| 14 | |
| 11 | |
| 9 | |
| 8 |