Transition to status issue count by current issue Priority


I need to create a report that can show me how many issues have moved to In progress status over the last 3 months (in Rows) segmented by their current priorities (in Columns). When I tried to create it, I had a problem with the report showing the priorities of the tasks they had at the time, but I need to segment them by their current priority.
How I can resolve it?