How to use average command

How to use the avg command in QSPICE to view input power, output power, and their average power? if in Pspice we can use avg(V(Vin) * I(Rs)) because i’ve tried and it can’t

Try to use meas statement. Like this:

.meas Pavg avg(I(Rs)*V(in))

Best regards