Could anyone from Dynatrace explain how does the USQL Funnel derive the count ? I am experimenting this new USQL FUNNEL function and was trying to match the count but doesn't seem to be tally,
For example, I have 3 user actions ! = /index/login, = !/index/landing and LIKE "!/index/*/create"
here's the USQL statement:
SELECT useraction.name, COUNT(DISTINCT(usersession.userId)) AS number FROM useraction where useraction.name = "!/index/login" OR useraction.name = '!/index/landing' OR useraction.name LIKE "!/index/*/create" AND errorCount = 0 GROUP BY useraction.name LIMIT 5000
SELECT FUNNEL(useraction.name = "!/index/login" AS "Login page",useraction.name = '!/index/landing' AS "Landing page",useraction.name LIKE "!/index/*/create") FROM usersession
But the count between COUNT and FUNNEL differ by alot... anyone helpful to share some lights on the difference ? FUNNEL function count is very low and even though I am able to find those user actions via UserSession dashboard but FUNNEL didn't account for it.
Solved! Go to Solution.
AFAIK, FUNNEL counting is like adding more and more actions that are reached in session for each FUNNEL step. So you should use AND instead of OR in your select to reach similar results as FUNNEL.
Actually it honours the order of those user actions, so even with AND you probably won't have the very same results.
For funnel like:
Action1,Action 2,Action 3
If a session has only Action 2 and Action 3 it won't be included in the Funnel as it is mission Action 1.