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
Hello,
I have about 15 years of data broken out into 4 categorys based on season FA, WI, SP, SU. I am attempting to label each label as Fall, Winter, Spring, Summer. The data looks like 2020/FA, 2019/FA, 2018/FA...etc for all seasons.
Currently I am doing an endless if by IF(Table = "2020/FA", "Fall", IF (Table = "2020/SP", Spring, IF....
This is turning into a very long and repetative processs and I was experimenting with wildcards (*,?) trying to be able to get,
IF(Table = "????/FA", "Fall", IF (Table = "????/SP", Spring, IF...., but neither * or ? was getting picked up as a wildcard.
Should the wildcard characters be outside of the "" or am I having my logic wrong any help is appricated, does not have to be an if statement.
@Anonymous Hi, you can try below CALCUALTE COLUMN;
Hello,
You can try the Containsstring function.
https://docs.microsoft.com/en-us/dax/containsstring-function-dax
Thanks,
Irfan
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 |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |