duōkuī多亏 is also used when the negative consequence is avoided with the help of others of the occurrence of the some factors, but it is prone to be used to express one’s gratitude rather than the feeling of being lucky. For example,
多亏了你的帮助,不然我一定会失败!
Duōkuīle nǐde bāngzhù, bùrán wǒ yídìnghuì shībài
Fortunately your help otherwise I definitely fail
‘Thanks to your help. Otherwise I would definitely have failed.’