Sorry New York
I wasn't clear in my last post because of my poor English.
I'm using "HAD SPENT AMOUNT"
I set it up in this way. If a customer has bought 90$ previusly in one category of the entire site so the next time he gonna buy he will have a 30% discount in a specific category.
Until yesterday it didn't work but today I discovered that was not working just because the specific category was hidden (lost hours to find out :-( )
Now the category is displayed and is perfectly working
Thank you for your help