Showing results for 
Show  only  | Search instead for 
Did you mean: 

USQL FUNNEL count clarification



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, COUNT(DISTINCT(usersession.userId)) AS number FROM useraction where = "!/index/login" OR = '!/index/landing' OR LIKE "!/index/*/create" AND errorCount = 0 GROUP BY LIMIT 5000


SELECT FUNNEL( = "!/index/login" AS "Login page", = '!/index/landing' AS "Landing page", 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.


DynaMight Pro
DynaMight Pro

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.

Alanata a.s.

OK, thanks for the clarification.

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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

DynaMight Champion
DynaMight Champion

I have the same need,


Did you get Any Chance to resolve it.

If yes, how should be the USQL.


Sharing Knowledge

Featured Posts