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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

M Code error

what error in this M Code

 

 

 

"Year_2", each if [Semester] = 1 then [Year_1] + 1 else [Year_1] - 1)

 

 

 

Please help me 

2 REPLIES 2
Anonymous
Not applicable

Please looking the error message below

TheGunners_0-1679175485370.png


How to fix this?

Hi @Anonymous ,

I would say your Year column is a Text data type, due that you can't add 1 as a number.
Solution is, change Year to number before this operation.

 

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.