Thank you Randy for your words of wisdom. I was able to modify some formulas to do just this.
Modify these cells below
V5 =QUERY({INDIRECT($BB$19), INDIRECT($BB$18), INDIRECT($BB$17), INDIRECT($BB$16), ARRAYFORMULA(VLOOKUP(INDIRECT($BB$18), {INDIRECT($BB$4), INDIRECT($BB$5)}, 2, FALSE)), ARRAYFORMULA(VLOOKUP(INDIRECT($BB$18), {INDIRECT($BB$4), INDIRECT($BB$6)}, 2, FALSE))}, “SELECT MONTH(Col1)+1, SUM(Col3) WHERE " & IF($K$16=$Y$2, “Col5=‘Income’ AND Col6<>‘Hide’”, “Col3>0”) & " AND Col1 >= DATE '” & TEXT($X$1, “yyyy-mm-dd”) & “’ AND Col1 <= DATE '” & TEXT($Y$1, “yyyy-mm-dd”) & “’ AND Col4='” & $M$17 & “’ GROUP BY MONTH(Col1)+1 ORDER BY MONTH(Col1)+1 ASC LABEL MONTH(Col1)+1 ‘Query Month’, SUM(Col3) '” & IF($K$16=$Y$2, “Income”, “Inflows”) & “'”)
X5 = =QUERY({INDIRECT($BB$19), INDIRECT($BB$18), INDIRECT($BB$17), INDIRECT($BB$16), ARRAYFORMULA(VLOOKUP(INDIRECT($BB$18), {INDIRECT($BB$4), INDIRECT($BB$5)}, 2, FALSE)), ARRAYFORMULA(VLOOKUP(INDIRECT($BB$18), {INDIRECT($BB$4), INDIRECT($BB$6)}, 2, FALSE))}, “SELECT MONTH(Col1)+1, SUM(Col3) WHERE " & IF($K$16=$Y$2, “Col5=‘Expense’ AND Col6<>‘Hide’”, “Col3<0”) & " AND Col1 >= DATE '” & TEXT($X$1, “yyyy-mm-dd”) & “’ AND Col1 <= DATE '” & TEXT($Y$1, “yyyy-mm-dd”) & “’ AND Col4='” & $M$17 & “’ GROUP BY MONTH(Col1)+1 ORDER BY MONTH(Col1)+1 ASC LABEL MONTH(Col1)+1 ‘Query Month’, SUM(Col3) '” & IF($K$16=$Y$2, “Expense”, “Outflows”) & “'”)
And lastly I added a drop down Account filter on cell M17