Does rental deduction deducted from only rental income or the entier income including W2 income for example

I've spent money on a property I bought but never got the chance to rent it last year, would I  be able to claim/deduct any of these expenses ?

Also does expenses on improvement comes from the over all income including income from W2 or just from the rental property income ?