Create a bar chart for example. Use something as your dimension that makes sense. For your measure use the fx to enter the editor and type in Sales-Cost assuming these are the field names you are using in your data.
You should now see a bar chart with the correct data and measure.
If that worked then you can try making the expression a variable if you need to and using that instead.