Self employed

Any income from your self employment qualifies for QBI. If any income is from a W-2 that income would not. It is not unusual to have both W-2 and self employment income in the same return.