Skip to content

Commit

Permalink
fixing mdx error
Browse files Browse the repository at this point in the history
  • Loading branch information
akristen committed May 8, 2024
1 parent 81ffa97 commit 1289a0f
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ There are three options:
```sql
SELECT uniques(countryCode) FROM PageAction since 2 days ago
```

For rules and tips on writing queries, see [Query-type variables](#query-variable-rules).

* <DoNotTranslate>**List**</DoNotTranslate>: A list of comma-separated values that are used to populate the options in the dropdown menu. For example, you could manually define a list of `country` values using a list like: `ES, US, CA.`
* <DoNotTranslate>**Text field**</DoNotTranslate>: Instead of a dropdown of values to choose from, this allows dashboard users to filter for whatever text they input.
</td>
Expand Down Expand Up @@ -325,21 +327,21 @@ You can use almost any NRQL query as long as it returns a list of values. For th

With [`uniques`](/docs/nrql/nrql-syntax-clauses-functions/#func-uniques):

```sql
```sql
From PageAction select uniques(countryCode)
```
```

```sql
```sql
-- you can use the second param to define the maximum number of results to be listed.
From PageAction select uniques(countryCode, 10000) --> this will return up to 10k results
```
```

With [`keyset`](/docs/nrql/nrql-syntax-clauses-functions/#keyset):

```sql
--- with `keyset`, you'll get a list with all of the attributes from the table you're querying from
```sql
-- with `keyset`, you'll get a list with all of the attributes from the table you're querying from
From PageAction select keyset() SINCE 1 day ago
```
```

Keep in mind that nested variables are not supported as there can't be variables within variables.

Expand Down

0 comments on commit 1289a0f

Please sign in to comment.