Hi oscar,
you can trigger two query's at the same time, map the year and month in the same cell and pass the year and month to the cell where you have mapped it. Then choose the triggering option of when value becomes or changes.
This will do the requirement, take a look at the below link where i have create the segment prompt in first query and in the subsequent then i have triggered all the query's using the single cell.
Difference between "When value Becomes & When value Changes"
Hope this helps, revert for any assistance.
--SumanT