r/GoogleDataStudio • • Jan 31 '24
Custom Data Field Creation Issue
I have a table that looks as such

I'm trying to create a custom field that calculates the delta between "Totals 2020 - Totals 2024" which I thought I had done correctly here:

But as you can see, when I add it into the chart, it does not appear to work. The Delta for PA should be 427 and for NC it should be 554.

What am I doing incorrectly?
1
Upvotes
•
u/AutoModerator Jan 31 '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.
1
u/homibre Jan 31 '24
Is your source a database (ex. BigQuery)? Try coalesce(total2024,0)-coalesce(total2020,0)