Hi,
Follow these steps:
1. Create the calculated field.
2. Add the field in detail shelf.
3. Now go to analytics pane, add a reference line.
4. Edit the line by selecting the value from drop down.
5. The field is now available to use as reference line.
Hope this helps you.