Answer:
This expression is used when we are talking about something we did not know in the past, but we wish had known it at the time. Our action in the past would have been different if we knew that information. This sentence pattern has exactly the same meaning as "If I had known that...". Only the word order is different