We consider the scattering of Dirac particles in graphene due to the superposition of an external magnetic field and mechanical strain. As a model for a graphene nanobubble, we find exact analytical solutions for single-particle states inside and outside a circular region submitted to the fields. Finally, we obtain analytical expressions for the scattering cross-section, as well as for the Landauer current through the circular region. Our results provide a fully-analytical treatment for electronic transport through a graphene nanobubble, showing that a combination of a physical magnetic field and strain leads to valley polarization and filtering of the electronic current. Moreover, our analytical model provides an explicit metrology principle to measure strain by performing conductance experiments under a controlled magnetic field imposed over the sample.