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

USQL FUNNEL count clarification

chuan_sern_wong
Advisor

Hi,


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:

Use COUNT

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

Use FUNNEL:

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.

4 REPLIES 4

rastislav_danis
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

Malaik
Champion

I have the same need,

 

Did you get Any Chance to resolve it.

If yes, how should be the USQL.

Thanks

Sharing Knowledge

Featured Posts