Keyword reference
You can use keywords when asking a question to help define your search. This reference lists the various keywords. You can also see this list of keywords and examples from within the help center.
Keywords in other languages
Currently, we offer the following keyword translations.
Also, see the topic on how to set locale preferences in your user profile to control language, date, and number formats on the ThoughtSpot UI.
General
Keyword | Description | Examples |
---|---|---|
top n |
Generates the top n from a sorted result |
|
bottom n |
Generates the bottom n from a sorted result |
|
sort by |
Sorts the result set by an attribute or measure. |
|
When using the top or bottom keywords without specifying a number n), the number defaults to 10. |
Date
Keyword | Examples |
---|---|
after |
|
before |
|
between … and … |
|
daily year-over-year |
|
daily |
|
day |
|
day of week |
|
day of week |
|
n days for each month |
|
n days for each quarter |
|
n days for each week |
|
n days for each year |
|
growth of … by … daily |
|
growth of … by … monthly |
|
growth of … by … quarterly |
|
growth of … by … weekly |
|
growth of … by … yearly |
|
growth of … by … |
|
n hours for each day |
|
last day by |
|
last month |
|
hourly |
|
last month by |
|
last n days |
|
last n months |
|
last n quarters |
|
last n weeks |
|
last quarter |
|
last week |
|
last year |
|
last n years |
|
month to date |
|
month year |
|
month |
|
month |
|
monthly year-over-year |
|
monthly |
|
n months for each quarter |
|
n months for each year |
|
n days ago |
|
n months ago |
|
n months |
|
n quarters ago |
|
n weeks ago |
|
n years ago |
|
n years |
|
next day |
|
next month |
|
next n days |
|
next n months |
|
next n quarters |
|
next n weeks |
|
next n years |
|
next quarter |
|
next week |
|
next year |
|
quarter to date |
|
quarterly year-over-year |
|
quarterly |
|
n quarters for each year |
|
this day |
|
this month |
|
this quarter |
|
this week |
|
this year |
|
today |
|
week to date |
|
week |
|
weekly year-over-year |
|
weekly |
|
n weeks for each month |
|
n weeks for each quarter |
|
n weeks for each year |
|
year to date |
|
year |
|
yearly |
|
yesterday |
|
Time
Keyword | Examples |
---|---|
detailed |
|
last minute |
|
last hour |
|
n minutes |
|
n hours |
|
n minutes ago |
|
n hours ago |
|
next hour |
|
next minute |
|
this hour |
|
this minute |
|
Text
Keyword | Examples |
---|---|
begins with |
|
contains |
|
ends with |
|
not begins with |
|
not contains |
|
not ends with |
|
similar to |
|
not similar to |
|
Number
Function | Examples |
---|---|
sum |
|
average |
|
count |
|
max |
|
min |
|
standard deviation |
|
unique count |
|
variance |
|
Comparative
Function | Examples |
---|---|
all |
|
between… and |
|
vs, versus |
|
> |
|
< |
|
>= |
|
<= |
|
= |
|
!= |
|
Location
Keyword | Examples |
---|---|
near |
|
near… within n miles|km|meters |
|
farther than n miles|km|meters from |
|
Location keywords only work for searches where the data source includes latitude/longitude data. You can only use them if you bring your data into ThoughtSpot’s in-memory database. You cannot use these keywords if you connect to your data in an external database. |
Period
Keyword | Example |
---|---|
quarter (date) |
|
quarter of year (date) |
|
month of quarter (date) |
|
week of year (date) |
|
week of quarter (date) |
|
week of month (date) |
|
day of year (date) |
|
day of quarter (date) |
|
day (date) |
|
day of month (date) |
|
day of week (date) |
|
hour (datetime) |
|
In
Keyword | Description | Example |
---|---|---|
attribute in (attribute subsearch) |
Query in query search (intersection of two sets) Must match last attribute before keyword with first attribute inside subsearch. |
|