function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dan Albrecht 5Dan Albrecht 5 

SAQL Ratio Calculations

Hello Developer Community.  I need some help.  

I need to be able to calculate a ratio in Einstein Analytics using SAQL.

Here is what I am looking to do.

1. Calculate the number X Leads (Total number from filtered list)
2. Calculate the number of Y Leads (Total Number from filterd list)
3. Calculate the number of Z Leads (Total number from filtered list)

Then tie it all together in a ratio %.  The ratio is put together by: (X + Y) / Z

If anyone can help me to understand how to do this, I would be greatly appreciated.