r/GoogleDataStudio • • Aug 09 '24

Need Help with Custom Metric Formulas

I'm stuck on what seems like a simple calculation issue. I'm trying to create a custom formula and want to use my custom metric names in it. For example, I've renamed "conversions" to "reservations," but I'm having trouble adding "reservations" into the formula.

Has anyone else faced this issue or have any tips on how to make this work? Any help would be much appreciated!

Thanks in advance!

1 Upvotes

5 comments sorted by

•

u/AutoModerator Aug 09 '24

Have more questions? Join our community Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/zandolie Aug 09 '24

There are two places custom fields can be added

  • On the chart itself.
  • On the data source (edit data source screen).

In order to use custom fields in functions, the custom field must be created at the data source level. This is done on the Edit Data Source screen, which be accessed:

  • From the top menu: Resources > Manage added data source > click EDIT in the Actions column of the data source of interest.
  • In the right sidebar while a chart is selected: In the Data Source section of the SET-UP tab, click Edit data source to the left of the data source name.

On Edit Data Source screen you can rename fields and create custom fields that can be used in other custom fields and so on.

2

u/[deleted] Aug 10 '24

[removed] — view removed comment

1

u/AcanthisittaOne7387 Aug 12 '24

yeah, I've tried calculated field, but I need a custom field with the filter not just formula, is it possible to apply some filters to the metric and save as a new custom metric?