# How to find only frustrated user action names of every user through USQL?

**URL:** <https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483>\
**Category:** Real User Monitoring\
**Tags:** user-actions, usql\
**Created:** [June 4, 2020, 5:46pm UTC](https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483 "2020-06-04T17:46:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumit\_patil](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sumit\_patil](https://community.dynatrace.com/u/sumit_patil)\
**Post date:** [June 4, 2020, 5:46pm UTC](https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483/1 "2020-06-04T17:46:45Z")

</div>

How to find only frustrated user action names of every user through USQL?

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [June 4, 2020, 6:20pm UTC](https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483/2 "2020-06-04T18:20:54Z")

</div>

Something like:

select name, count(name) from useraction where apdexCategory IS “FRUSTRATED” group by name order by count(name)

This shows you the name of the top occurrences of user actions where they were marked as frustrated.

---

<div class="post-metadata">

**Author:** ![Domenico\_Bressi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/domenico_bressi/32/7142_2.png) [@Domenico\_Bressi](https://community.dynatrace.com/u/Domenico_Bressi)\
**Post date:** [June 4, 2020, 7:41pm UTC](https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483/3 "2020-06-04T19:41:50Z")

</div>

MY approach is to find “worst” usersession in order to take analysis from “holistic” point of view.

You can built a table using usql to have the “big picture”. Base on that add to your dashboard deep dashlet base on usql.

SELECT totalErrorCount, userExperienceScore, \* FROM usersession WHERE useraction.application=“Your\_Application” and userExperienceScore=“FRUSTRATED” order by totalErrorCount desc

 ![25261-1591299694351.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/cdcf5298dc9bfb37b03b7cb4145795e983437f1b.png)

---

<div class="post-metadata">

**Author:** ![sumit\_patil](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sumit\_patil](https://community.dynatrace.com/u/sumit_patil)\
**Post date:** [June 5, 2020, 6:06am UTC](https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483/4 "2020-06-05T06:06:57Z")

</div>

Thanks for replies.

I have created below query from which am able to pull out all the frustrated users user action. But am not able to pull out only frustrated user actions from those. Is there any solution on below query.

Query :

SELECT userId, userExperienceScore, useraction.name, useraction.apdexCategory FROM usersession WHERE userExperienceScore IS"FRUSTRATED" AND useraction.serverTime \> 12000

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [June 5, 2020, 3:18pm UTC](https://community.dynatrace.com/t/how-to-find-only-frustrated-user-action-names-of-every-user-through-usql/19483/5 "2020-06-05T15:18:42Z")

</div>

userExperienceScore is session level, it takes into account all of the actions in the session so you can end up including the user actions that have the (action level) apdex category of tolerating or satisfied as long as the session itself is classified as having a frustrated (session level) userExperienceScore.

If you only want frustrated actions you need to pull from the useraction table (not the usersession table) and you will filter to apdexCategory (not usersession.userExperienceScore).

That’s what my example posted earlier does.

[User experience score (session level)](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/basic-concepts/ratings/user-experience-score/)

[Apdex (action level)](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/basic-concepts/ratings/apdex-ratings/)
