Thanks for the update, that’s great to hear! Would you mind expanding a bit on the ‘magic’, especially no cases facets?
Following on from my earlier post in this thread, this recent development is super-close to meeting my use-case. I’m just looking to display the unique count of each type of host which have the following naming conventions: __WEB
, __xWEB
, __OAPP
& __xOAPP
. Using Facet Cases, I’m looking to filter the dashboard using these cases.
So far, my current workaround solution looks like this:
FROM Transaction
SELECT
filter(uniqueCount(host), WHERE host LIKE '%WEB%') - filter(uniqueCount(host), WHERE host LIKE '%XWEB%') AS 'WEB',
filter(uniqueCount(host), WHERE host LIKE '%XWEB%') AS 'xWEB',
filter(uniqueCount(host), WHERE host LIKE '%OAPP%') - filter(uniqueCount(host), WHERE host LIKE '%XOAPP%') AS 'OAPP',
filter(uniqueCount(host), WHERE host LIKE '%XOAPP%') AS 'xOAPP'
SINCE 2 hours ago
LIMIT MAX
Show chart...

Somewhat long-winded, but gives me the exact output that I’m after. Unfortunately, they can’t be used as dashboard filters, which really limits user-interactivity.
Alternatively, this is my attempt at an updated solution:
FROM Transaction
SELECT count(*)
FACET CASES (
WHERE host LIKE '%WEB%' AND host NOT LIKE '%XWEB%' AS 'WEB',
WHERE host LIKE '%XWEB%' AS 'xWEB',
WHERE host LIKE '%OAPP%' AND host NOT LIKE '%XOAPP%' AS 'OAPP',
WHERE host LIKE '%XOAPP%' AS 'xOAPP'
)
SINCE 2 hours ago
LIMIT MAX
Show chart...

While these cases can be used to filter the dashboard, I’m unable to display their uniqueCount()
as in the previous query. Any suggestions on how I can make this right?
Thanks for your time.