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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors