The question does not make sense. One of the two occasions that 'you' is used should be another pronoun i.e. 'I', 'he. 'she', etc. :
'Have you ever noticed that when she has a problem, you are there ?'
'Have you ever noticed that when you have a problem, he is there?'