Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a database that has 2 columns (FWork Main Aim and Standard Title).
I'm trying to create a custom column that says if FWork Main Aim begins with Non reg, then choose the Standard Title, otherwise choose the FWork Main Aim.
I've got as far as
=IF(LEFT(TRIM([FWork Main Aim]),7)="Non reg","[Standard Title]","[FWork Main Aim]")
I keep getting syntax errors, so would appreciate a formula that would do this for me.
Solved! Go to Solution.
Hi @Anonymous,
The formula(M) below should work in your scenario.
=IF(Text.Start(Text.Trim([FWork Main Aim]),7)="Non reg",[Standard Title],[FWork Main Aim])
Regards
Column=IF(LEFT(TRIM([FWork Main Aim]),7)="Non reg",[Standard Title],[FWork Main Aim])
I get the following error from that. It doesn't find any syntax errors (so much improvement on my attempt!), However, when I click ok i get the following
Expression.Error: The name 'Column' wasn't recognized. Make sure it's spelled correctly.
Hi @Anonymous,
The formula(M) below should work in your scenario.
=IF(Text.Start(Text.Trim([FWork Main Aim]),7)="Non reg",[Standard Title],[FWork Main Aim])
Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |