Past perfect simple- To describe something which happened before a single event in the past.
Before I moved to Rotterdam I had lived in Dordrecht.
Past perfect continuous- To describe something which happened before a single event in the past --> Focuses on the duration
Before I moved to Rotterdam, I had been living in Dordrecht for 10 years.