Anyone had luck with Custom KPIs? I've followed th...
# suiteanalytics
n
Anyone had luck with Custom KPIs? I've followed the bare bones help section and created a search that Counts the number of Sales Order Transactions. But all I can ever get is an Error.
As far as the KPI Scorecard goes, • The default Sales KPI works fine • Custom KPI #1 causes errors
Custom KPI #1 is defined by a search • Criteria: Type is Sales Order • Results: Internal Id Summary Type: Count • Available Filters: Date
c
I've made a ton of custom KPIs, but would need a bit more info to determine what the issue is on your end. What date ranges do you have defined in the scorecard? Is the Date filter in the saved search simply just the Date field that shows the sales order date? Do you have any date criteria added in your search? Sometimes I get errors with KPIs if the dates being pulled in the search contradict the dates that the KPI is trying to pull, such as future dates (if transactions are created with a date entered as a future month). To identify if it's a weird date issue from your search, go to your search and type in today's date in the "from field" and then just tab over and see if the search loads or if it errors out. If it does, then it's an issue with your search itself. Long story short, we have a custom date field that we use in some KPI searches. It pulls the posting period date of a transaction as the last day of that period so it's in date format. I've had a kpi error because of some transactions being pulled in my search that had future dated transactions.
n
Date Range on Score Card • Range: this year to date
No Date filter on the Saved search ! Correction, No Date Criteria, only blank Date Filter under Available Filters
c
Did you test out running the search and entering today's date and tabbing over to see if the search errors?
Keep the "To" date blank when you do this
n
I've added a from Date and tabbed out keeping To blank and the search returns results.
c
Is the results of your search only the Internal ID (count) and nothing else is grouped in the results?
n
yes, It only returns 1 result, the count of Internal Id
c
Also, are you doing this as Admin? Sometimes KPIs error if the roles aren't set in the search as well as the KPI Scorecard itself.
n
I'll check permissions
I'm running as editing as Admin and using another role to view results
c
OK that's the issue then probably
you need to make sure the role you're testing in is added as the audience to both the search and the KPI Scorecard.
👍 1
Also, you'll need to make sure the role you're testing in has the right permissions to even view Sales orders to see the results.
n
That was it.
As some point I think I unchecked Public and it reset audience roles.
Thank you for you help!
c
Fun times!
No problem