Hello angupta,
This post was migrated from a previous platform, I'm not sure if the code works in more recent versions of Sisense. If you like I can get you in touch with a technical resource to work with you, or please post your question in the Help & How-To forum.