The second phrase doesn't really make sense, but I assume you said(or heard) those two phrases as similar meaning.... and it means "I wish (someone) were there." And you put the Korean word for someone in the beginning of the phrase. Like "네가 가면 좋았을텐데" means "I wish you were there."