Forum

6.11 Concatenating ...
 
Notifications
Clear all

6.11 Concatenating "00:" to values in gap column returns nulls

4 Posts
3 Users
0 Reactions
98 Views
(@warrior563)
Posts: 1
New Member
Topic starter
 

In lesson 6.11 concatenating "00:" to the values in the gap column returns nulls where the durations are one hour or more. This is true in Excel 2010, Excel 2013 and Excel 2016. One solution is to use an if statement to only concatenate "00:" to the values in the gap column where the durations are less than one hour. This can be done by using the Text.Length function to test for a length of less than six.

 
Posted : 16/08/2016 3:41 pm
(@mynda)
Posts: 4762
Member Admin
 

Hi Joseph,

Yep, there are lots of ways to tackle some of the data cleaning exercises you might have. The purpose of lesson 6.11 was to teach error trapping so hopefully you've mastered that too.

Mynda

 
Posted : 16/08/2016 7:16 pm
(@caroltxy)
Posts: 17
Eminent Member
 

Hi, dont mind if i wish to clarify my concern below about section 6:11

 Try ...Otherwise vs If then else 

 

could anyone tell me the difference? Then look quite similar whereby excel could provide us the desired solutions of each scenarios.

when should i use "Try..otherwise?" but not "If then else"  and via versa?

 

Thanks. 

 
Posted : 11/05/2020 8:54 am
(@mynda)
Posts: 4762
Member Admin
 

Hi Tan,

Try..otherwise is designed to trap errors. It's like IFERROR in terms of equivalent Excel functions. More on error handling in Power Query here.

Mynda

 
Posted : 12/05/2020 7:07 am
Share: