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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
王小飞
Frequent Visitor

try otherwise ,It looks like the result is wrong

Hello,expert

Look at the simulated data, it seems otherwise not executed

 

_0-1681293776876.png

 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @王小飞 

You need to put the try.. otherwise inside the Table.addcolumn

e.g 

 

= Table.AddColumn(#"Changed Type", "Custom", each try [AGE2] otherwise [AGE1])

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

look at my video
https://1drv.ms/v/s!AiUZ0Ws7G26RhyeGSYdbu2BYXd6s?e=vLE1Q0

try [AGE2] catch(rt)=> if rt[Message]="We couldn't convert to Number." then [AGE1] else[AGE2]

Hello,

I can not open this video。please confirm

 

 Thank you

v-xinruzhu-msft
Community Support
Community Support

Hi @王小飞 

You need to put the try.. otherwise inside the Table.addcolumn

e.g 

 

= Table.AddColumn(#"Changed Type", "Custom", each try [AGE2] otherwise [AGE1])

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.