# charting apdex using USQL

**URL:** <https://community.dynatrace.com/t/charting-apdex-using-usql/41177>\
**Category:** Real User Monitoring\
**Tags:** user-actions, usql\
**Created:** [August 11, 2023, 3:44pm UTC](https://community.dynatrace.com/t/charting-apdex-using-usql/41177 "2023-08-11T15:44:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndresBrown](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AndresBrown](https://community.dynatrace.com/u/AndresBrown)\
**Post date:** [August 11, 2023, 3:44pm UTC](https://community.dynatrace.com/t/charting-apdex-using-usql/41177/1 "2023-08-11T15:44:38Z")

</div>

hey there!

I wonder if you guys could help me doing this:

 ![AndresBrown_0-1691768519832.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/397775fe874076955d0e834f8392d816a828ec26.png)

but using USQL?

thanks in advance

Andrés.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [August 11, 2023, 9:47pm UTC](https://community.dynatrace.com/t/charting-apdex-using-usql/41177/2 "2023-08-11T21:47:56Z")

</div>

Yes, you can use USQL to calculate Apdex. Once upon a time, I had a formula that was able to do it. But there were some changes, and it now doesn’t give the exact value. It has to do about how errors are accounted for. Anyway, if you are not interested in perfection, it is doable…

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 14, 2023, 5:42am UTC](https://community.dynatrace.com/t/charting-apdex-using-usql/41177/3 "2023-08-14T05:42:08Z")

</div>

[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp; I believe&nbsp;[@AndresBrown](https://community.dynatrace.com/user/61241)&nbsp;wants to show just action counts and not calculate the apdex value (numeric).

[@AndresBrown](https://community.dynatrace.com/user/61241)&nbsp;you mean something like this?

```markup
select 
    count(*) as "Action Count",
    datetime(startTime) as "Time",
    apdexCategory as "Apdex Category"
from 
    useraction
where 
    application="www.easytravel.com"
group by
    datetime(startTime),
    apdexCategory

```

---

<div class="post-metadata">

**Author:** ![AndresBrown](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AndresBrown](https://community.dynatrace.com/u/AndresBrown)\
**Post date:** [August 14, 2023, 4:05pm UTC](https://community.dynatrace.com/t/charting-apdex-using-usql/41177/4 "2023-08-14T16:05:03Z")

</div>

Hey Julius\_Loman,

exactly what I mean.

thanks!!

Andres
