The same as with you question with skylights you need to add criteria to look for windows OR doors.
Then add the filed for TYPE and you should have what you are after.
The problem with adding doors and windows together in a schedule is that you may have parameters (fields) that are only applicable to doors or windows and not both.
i.e. door panel type or window glazing type.
So you will have blank spots in the schedule output.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11