Could you do this by creating a bin instead ? (right-click on the measure > Create > Bins)
That will create a dimension for you.
How does your calculation look like?
Show the formula
You can create two different calculations based on your before and after price.
Then you can use both of them as a measure and then later integrate into a histogram chart.
Could you please attach a snap of the issue you are facing?