It is trivial to do, but you have to make some assumptions:
What is the A.C. voltage source peak-to-peak voltage?
What is its frequency?
What is its internal source resistance? (or is it "ideal")?
What are the attributes of the diode? (or is it "ideal"?
Here it is with a 3vpp 50Hz ideal source with an ideal Silicon diode.
View attachment 117706
Notice that the first current pulse is subtly different the subsequent ones... Notice that LTSpice is smart enough to plot the power in any component, in this case, the 10k resistor.