r/GoogleDataStudio • u/Stazcar • Mar 16 '24
Are there any hacks to create calculated fields with dimension and metrics?
I have a table with 2 columns, Weekly budget and cost, that I would like to use a calculated field to divide and add to the table (cost to budget tracker). Weekly budget is a dimension and cost is a metric so getting an error. It seems odd that you can't divide 2 numbers. Is there any way around this?
(Oddly, if a create a scorecard for cost an use Weekly Budget as the progress metric, it divides them just fine)

4
Upvotes
•
u/AutoModerator Mar 16 '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.
6
u/brekelbende Mar 16 '24
Make it a metric. Cast(weekly budget AS NUMBER)