Given discrete and continuous random variables, $X$ and $Y$, respectively, the following conditional probability can be computed:
\begin{equation} P(Y \leq y_1 | X =x) = \int_{-\infty}^{y_1} f_{Y|X}(y|x)dy \end{equation}
But say you wanted to compute $P(X=x| Y \leq y_1)$, where you're now conditioning over a range, how would you compute it using the above approach? Typically, I would compute it using Bayes rule, but I wanted to try to derive an expression analogous to the above for $P(X=x| Y \leq y_1)$ (one that involves integrating perhaps the pdf of $Y$ or a conditional pmf of $X$), but I can't think of how this can be done nor have I seen it in any examples (all the examples use Bayes rule). How would one do this?