Hi community!
I would like to make the number inside the red circle to be a percentage based on the total customer in the blue box.
The code for the chart is:
...
|eval date_transfer=coalesce(date_created_tfo,date_call)
|join sku_name
[search index=index_products_production
|eval group_name=if(isnull(group_name),"NUL",group_name)]</code>
|eval year=strftime(strptime(date_transfer, "%Y-%m-%d"),"%Y")
|search group_name!="NUL"
|chart dc(customers_name) by group_name year
While the code for the distinct customers is:
...
|join sku_name
[search index=index_products_production
|eval group_name=if(isnull(group_name),sku_name,group_name)]
|search $country$
|stats dc(customers_name) as "Number of Distinct Customer"
... View more