You asked
Which lens gives the shallowest focus on the lumix gx850 for portraits?
For the shallowest focus on the Lumix GX850, the guide points to the fastest lenses that frame portraits well. On Micro Four Thirds, a focal length around 42.5mm (about 85mm on full frame) is the classic portrait choice, and the widest apertures there are f/0.95 to f/1.2.
The guide's top pick for this is the Olympus M.Zuiko 45mm f/1.2 PRO. It is one of the widest-aperture portrait lenses on the GX850 page, and its 45mm length frames like 90mm on full frame. The Panasonic Leica DG 42.5mm f/1.2 gives almost the same look and framing, with the Leica-badged build the page lists. If you want the widest aperture of all, the Voigtländer Nokton 42.5mm f/0.95 goes furthest, but it is a manual-focus-style choice, so it suits someone happy to focus by hand.
Wide apertures are not everything. The guide says that at f/1.4 and wider, depth of field can be thinner than a face, so one eye can be sharp while the other falls soft. Stop down to about f/2.8 when shooting two people at different distances. Also, the GX850 has no stabilisation in the body, so the lens does that work for slow shutter speeds. Background blur also grows with focal length and with distance between your subject and the background, so moving your subject away from a wall often helps as much as a faster lens. See the portrait guide and sensor sizes for the reasoning.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.