You can create three calculate fields:
1st Calculated field :
IF [Type of Dimension] = 'Finance' THEN [Profit] ELSE NULL END
2nd Calculated field:
IF [Type of Dimension] = 'Finance' THEN [Revenue] ELSE NULL END
3rd Calculated field:
IF [Type of Dimension] = 'Investment' THEN [No of Shares] ELSE NULL END
and drag all this into row shelf
If you want to learn more about Tableau, then go through this Tableau Training for more insights.