How to get profit and loss statement of demat account

How to get a profit and loss statement for Demat transactions?,