Formulas aren't working
Summary
Trying to do math to create a custom metric and formulas aren't working.Content
Hello,
I'm trying to calculate the percentage of future dated activities on an opportunity. First, I need to calculate that using this: CASE WHEN "Activity"."Due Date"> Current_Date then COUNT(DISTINCT "Sales - CRM Pipeline"."Pipeline Facts"."# of Opportunities") else 0 end. This formula works and returns results.
Then, I'm doing this: 100*SUM(CASE WHEN "Activity"."Due Date"> Current_Date then COUNT(DISTINCT "Sales - CRM Pipeline"."Pipeline Facts"."# of Opportunities") else 0 end)/SUM("Sales - CRM Pipeline"."Pipeline Facts"."# of Open Opportunities"). This is not erroring out but it's also returning '0' as the results.
1