It applies when something is done or done but in the end does not meet expectations. I actually consider that good or bad luck does not exist, success or failure depends on other factors.