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
Hi Everyone,
I have a scenario, I have multiple countries each country having multiple States. I need to create serial number column for states in each country. attaching sample data below.
| Country | States |
| India | AP |
| India | Karnataka |
| India | Tamilanadu |
| India | UP |
| USA | Arizona |
| USA | Colorado |
| USA | Florida |
| USA | Montana |
| USA | Maine |
Attaching expected out put.
| Country | States | Serial No |
| India | AP | 1 |
| India | Karnataka | 2 |
| India | Tamilanadu | 3 |
| India | UP | 4 |
| USA | Arizona | 1 |
| USA | Colorado | 2 |
| USA | Florida | 3 |
| USA | Montana | 5 |
| USA | Maine | 4 |
Please help me out on this.
Thanks,
Bala.
Solved! Go to Solution.
you can try this to create a column
Proud to be a Super User!
you can try this to create a column
Proud to be a Super User!
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!