Hi All,
I have 2 fields (simulation_insurance and hiring_insurance) that have the value “Yes” and “No”
Example:
Customers who simulated a proposal with insurance and who purchased with insurance, and customers who simulated a proposal without insurance and who purchased without insurance.
quantity of unique customers | simulation_insurance | hiring_insurance
1000 | S | S
500 | N | N
I need to put the information that customer simulated and contracted with insurance (only what customer simulated and contracted with insurance (YES) in a line graph as a percentage of the total
A graph line for simulation with insurance (YES) and a graph line for contracting with insurance (YES).
I tried to do it, but is not working
percentOfTotal(
countover(distinct_count({id_customer}, {simulation_insurance} = ‘YES’ AND {hiring_insurance} = ‘YES’),
[truncDate(‘DD’, {my_date})],
PRE_AGG)
)
How to do this calculation?
Thanks!