Sorry, I can't see enough of actual circuit to say for sure.
Normally, a fan rated dimmer is used in place of the wall switch.
This is located on the fan itself, or the wall?
the cable is coming from the fan load itself, or the household circuit?
What is the fan voltage, 240v?