It would depend on whether you consider that the other 10 months have 0 complaints or null complaints.
So the other complain are 0 for 10 months or 8 months.
So I have data without 0 Lets say i have product ABC and XYZ so i have data , whatever month has value in it not the data with other month which dont have data. Like below.
(With this data i would like to calculate median for 12 month . For example ABC has complaint no for February and May but i want to calculate median for 12 months)
Product Complaint Year-Month Complaint No ABC Close 2017-02 5 ABC Close 2017-05 3 XYZ In progress 2017-01 1 XYZ In progress 2017-03 2 XYZ In progress 2017-04 1