Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
WendyMcEwen
New Member

Embedded If Statement with Concatenate

I'm trying to create an embedded if statement which combines a letter ("M" or "N") with a field.  I'm getting an error with "If".  I also tried it in conditional columns.  Any ideas?  Thank you

 

If ([Home College] = "MVC" ,
Concatenate ("M", [RecentRCCDCode]),
If [RecentRCCDCode] = "NC" , Concatenate ("N", [RecentRCCDCode]),
[RecentRCCDCode])

1 REPLY 1
Anonymous
Not applicable

@WendyMcEwen 

 

Please first read the following rules on writing correct DAX: Rules for DAX Code Formatting - SQLBI. The DAX as written right now is not correct and hence very hard to read.

 

Is the above formula a formula in a calculated column? Or a measure?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors