It is not completely convincing as idiomatic English.
Here's some ways that are better:
It has not rained today, but it rained yesterday.
It has not rained as much today as it did yesterday.
The two do not mean exactly the same thing, however, so you will have to decide which one is the one you want to say.