Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
how to write category A for letter A-M and category b for letter N-P and category c for Q-Z from state and province column
Solved! Go to Solution.
@ArpanJain , You need to create a new column
New column=
var _1 = left([State or province],1)
Switch(True() ,
_1 <= "M", "Category A",
_1 <= "O", "Category B",
"Category C"
)
@ArpanJain , You need to create a new column
New column=
var _1 = left([State or province],1)
Switch(True() ,
_1 <= "M", "Category A",
_1 <= "O", "Category B",
"Category C"
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |