Details about the lives of Bharthari and his brother Vikramaditya are from the tales of Baital Pacchisi (Twenty five tales of Baital), translated as 'Vikram and The Vampire' by Sir Richord Francis Burton, in 1870.
This is a fiction. But there is wisdom to be learnt from such stories. Like money and power cant buy you love. Never take your love for granted, you might be in for a shock. Men renounce the world when they lose power over their women. A man must find his true goal in life early. Even those whom we regard as of loose character (Lakha) can show a great strength of character, etc.
If you think that there is something more to the story, please write in. It is open to interpretations.