Hi y'all,
I am attempting to work out the conversion rate for our Sales agents to be displayed for management in a nice gauge.
I am partially there; however, the result being returned is not the expected result.
What I am trying to do is get all the records where the Agent is assigned and where the Agreement Signed date/time field is null.
I return the records for the last 30 days where the Agent is assigned and the Agreement Signed is not null, and it excludes any records older than that where the Agreement Signed is not null.
I have this formula:
var number Sale = If(not IsNull([Agreement Signed]) and ToDate([Agreement Signed]) >= Today() - Days(30) and [Sales Agent Name] = "Agent Name", 1, 0); var number NoSale = If([Sales Agent Name] = "Agent Name" and IsNull([Agreement Signed]), 1, 0); var number ConversionRate = If(($Sale + $NoSale) <> 0, ($Sale / ($Sale + $NoSale)) * 100, 0); $ConversionRateNick
------------------------------
Nick Green
------------------------------