Have your cake and eat it too
xtɕɛdʑ zjɛɕtɕ tɕastkɔː i mʲɛtɕ tɕastkɔ
In Polish Chcieć zjeść ciastko i mieć ciastko.
This is a direct translation of the English idiom, and is well understood.
Example
"Nie możesz chcieć zjeść ciastko i mieć ciastko."