Hi @Santosh, I am not sure I totally understand your requirement. Are you trying to show last 12 months or last 10 months data based on selected date filter? If that is the case, I would suggest creating a date parameter and link it to a control.
Once the user selects date from control you will be able to dynamically calculate last 12 or 10 months based on selected date using below formula in a calculation. Add this calculated column as a filter to your bar chart and choose to show ‘True’ all the time.
Hope this helps!
Regards,
Karthik