Please see the attached workbook.
I tried to create your barchart with your specific requirements but you'll have to make adjustments depending on your personal preference/outside requirements.
Stacked Side by Side
Also, I used the superstore dataset so you may have to create extra calculations depending on how your data is structured.
age groupings.twbx 1.2 MB