In the TNG episode INHERITANCE,
Data meets Juliana Tainer and finds a holographic data chip in her head. The hologram is of Dr. Noonien Soong, who explains that he created the Juliana android, and installed the data chip in her head. Then he explains that Juliana eventually left him.
The hologram very clearly speaks from Dr. Soong's point of view:
SOONG: Why? There was no reason for her to know. I wanted her to be happy. I wanted us to be happy. We were. For a while.
DATA: What happened?
SOONG: I made a terrible mistake. I never really let her know how much I loved her. So she left me. The real Juliana probably would have left too, if she'd lived.
So, how could Soong install a chip where he talks about things that didn't yet happen at the time he installed the chip?