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
Solved! Go to Solution.
@Anonymous,
In M Code, the formula should be:
= if [Column_1] = "AAA" and [Column_2] = "BBB" then "XXX" else if [Column_1] = "AAA" and List.Contains({"CCC","DDD","EEE"}, [Column_2]) then "XXX" else if [Column_1] = null and List.Contains({"CCC","DDD", "EEE"}, [Column_2]) then [Column_2] else ""
Regards,
Jimmy Tao
@Anonymous,
In M Code, the formula should be:
= if [Column_1] = "AAA" and [Column_2] = "BBB" then "XXX" else if [Column_1] = "AAA" and List.Contains({"CCC","DDD","EEE"}, [Column_2]) then "XXX" else if [Column_1] = null and List.Contains({"CCC","DDD", "EEE"}, [Column_2]) then [Column_2] else ""
Regards,
Jimmy Tao
@Anonymous
The custome column has to write in M language. You need to put AND between conditions.
e.g if column1=xxx and column2= xxx then xxx else xxx
If you want to use DAX to create a column you should write like AND (xxx,xxx)
Proud to be a Super User!
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.