中文(简体) Keyword reference

Use keywords to help define a search.

Use keywords to help define a search.

Note that you can only use one set of keywords at a time. If you set your locale to 中文(简体), you can only use 中文(简体) keywords. You can’t also use English keywords, or any other language. ThoughtSpot doesn’t translate its branded terms, such as Liveboard or SpotIQ.

General

When using the top or bottom keywords without specifying a number (n), the number defaults to 10.
top n

Generates the top n items from a sorted result. If your search has more than 1 measure, ThoughtSpot generates the top n items from the first measure in the search.

Examples
top 10 sales rep revenue

top sales rep by count sales for average revenue > 10000

sales rep average revenue for each region top
中文 (简体)

前…​个

top n measure1 by attribute|measure2

Calculates top n items, then sorts the top items by another measure or attribute.

Contrast with top n (swaps the order of operations).

Example
top 10 sales rep revenue by profit margin
中文 (简体)

前…​个 方式

top n …​ ranked by

Ranks the top n items by a specified measure. The ranked by keyword only works in conjunction with the top keyword. If your search has more than 1 measure, ThoughtSpot generates the top n items from the first measure in the search.

Examples
top 10 sales rep revenue sales ranked by sales

top customer revenue generated # of ads clicked ranked by # of ads clicked
中文 (简体)

前…​个 …​ 排名依据

bottom n

Generates the bottom n items from a sorted result.

Examples
bottom 25 customer by revenue for each sales rep

bottom revenue average

bottom revenue by state

customer by revenue for each sales rep bottom
中文 (简体)

后…​个

sort by

Sorts the result set by an attribute or measure.

Examples
revenue by state sort by average revenue descending

revenue by customer sort by region sort by state
中文 (简体)

排序依据

by <measure>

Treats the measure as an attribute and groups the result set by it.

Examples
cost by revenue

product by quantity purchased
中文 (简体)

方式

Date

The last keyword returns the last n full periods and does not include the current period. For example, last 6 hours returns the last 6 full hours and does not include the current hour. To include the current period, add this <period>. For example, last 6 hours this hour.
after
Example
order date after 10/31/2014
中文 (简体)

晚于

before
Example
order date before 03/01/2014
中文 (简体)

早于

between ... and ...
Example
order date between 01/30/2012 and 01/30/2014
中文 (简体)

介于 … 和 …

daily
Example
shipments by region daily
中文 (简体)

每天

daily year-over-year
Example
growth of revenue by order date daily year-over-year
中文 (简体)

每天 逐年

day
Example
count monday restaurant
中文 (简体)

day of week
Example
revenue by day of week last 6 months
中文 (简体)

每周的某一日

day of week
Example
count shipments Monday
中文 (简体)

每周的某一日

growth of …​ by ...
Example
growth of sales by order date
中文 (简体)

增长: … 方式 …

growth of …​ by …​ daily
Example
growth of sales by order date daily
中文 (简体)

增长: … 方式 … 每天

growth of …​ by …​ monthly
Example
growth of sales by date shipped monthly sales > 24000
中文 (简体)

增长: … 方式 … 每月

growth of …​ by …​ quarterly
Example
growth of sales by date shipped quarterly
中文 (简体)

增长: … 方式 … 每季度

growth of …​ by …​ weekly
Example
growth of sales by receipt date weekly for pro-ski2000
中文 (简体)

增长: … 方式 … 每周

growth of …​ by …​ yearly
Example
growth of sales by date closed yearly
中文 (简体)

增长: … 方式 … 每年

hourly
Example
visitors by page name hourly
中文 (简体)

每小时

last day by
Example
customers last day by referrer
中文 (简体)

上一 日 方式

last month by
Example
customers last month by day
中文 (简体)

上一 月份 方式

last n days
Example
visitors last 7 days
中文 (简体)

上一 n

last n quarters
Example
visitors last 2 quarters by month by campaign
中文 (简体)

上一 n 季度

last n weeks
Example
visitors last 10 weeks by day
中文 (简体)

上一 n

last n years
Example
visitors last 5 years by revenue for sum revenue > 5000
中文 (简体)

上一 n

last quarter
Example
customers last quarter sale > 300
中文 (简体)

上一 季度

last week
Example
customers last week by store
中文 (简体)

上一 周

last year
Example
top 10 customers last year by sale by store for region west
中文 (简体)

上一 年

month
Example
revenue by month last year
中文 (简体)

月份

month
Example
commission January
中文 (简体)

月份

month to date
Example
sales by product month to date sales > 2400
中文 (简体)

月份 至今

month year
Example
commission by sales rep February 2014
中文 (简体)

月份 年

monthly
Example
commission > 10000 monthly
中文 (简体)

每月

monthly year-over-year
Example
growth of revenue
  by receipt date
  monthly year-over-year
中文 (简体)

每月 逐年

n days ago
Example
sales 2 days ago
中文 (简体)

n 天 前

last n days for each month
Example
sales last 2 days for each month
中文 (简体)

n 天 针对每个 月份

last n days for each quarter
Example
revenue last 15 days for each quarter
中文 (简体)

n 天 针对每个 季度

last n days for each week
Example
total sold last 2 days for each week
中文 (简体)

n 天 针对每个 周

last n days for each year
Example
revenue last 300 days for each year
中文 (简体)

n 天 针对每个 年

last n hours for each day
Example
sales last 2 hours for each day
中文 (简体)

n 小时 针对每个 日

n months
Example
visitors last 6 months for homepage visits > 30 by month
中文 (简体)

n

n months ago
Example
sales 2 months ago by region
中文 (简体)

n 月 前

last n months for each quarter
Example
cost last 2 months for each quarter
中文 (简体)

n 月 针对每个 季度

last n months for each year
Example
last 8 months for each year
中文 (简体)

n 月 针对每个 年

n quarters ago
Example
sales 4 quarters ago by product name contains deluxe
中文 (简体)

n 季度 前

last n quarters for each year
Example
last 2 quarters for each year
中文 (简体)

n 季度 针对每个 年

n weeks ago
Example
sales 4 weeks ago by store
中文 (简体)

n 週 前

last n weeks for each month
Example
sales last 3 weeks for each month
中文 (简体)

n 周 针对每个 月份

last n weeks for each quarter
Example
last 2 weeks for each quarter
中文 (简体)

n 周 针对每个 季度

last n weeks for each year
Example
last 3 weeks for each year
中文 (简体)

n 周 针对每个 年

n years
Example
opportunities next 5 years by revenue
中文 (简体)

n

n years ago
Example
sales 5 years ago by store for region west
中文 (简体)

n 年 前

next day
Example
shipments next day by order
中文 (简体)

下一 日

next month
Example
appointments next month by day
中文 (简体)

下一 月份

next n days
Example
shipments next 7 days
中文 (简体)

下一 n

next n months
Example
openings next 6 months location
中文 (简体)

下一 n

next n quarters
Example
opportunities next 2 quarters by campaign
中文 (简体)

下一 n 季度

next n weeks
Example
shipments next 10 weeks by day
中文 (简体)

下一 n

next quarter
Example
opportunities next quarter amount > 30000
中文 (简体)

下一 季度

next week
Example
shipments next week by store
中文 (简体)

next year
Example
opportunities next year by sales rep
中文 (简体)

下一 年

quarter to date
Example
sales by product quarter to date
  for top 10 products by sales
中文 (简体)

季度 至今

quarterly
Example
sales quarterly for each product
中文 (简体)

每季度

quarterly year-over-year
Example
growth of revenue by date shipped
quarterly year-over-year
中文 (简体)

每季度 逐年

this day
Example
shipments this day by order
中文 (简体)

此 日

this month
Example
appointments this month by day
中文 (简体);

此 月份

this quarter
Example
opportunities this quarter amount > 30000
中文 (简体);

此 季度

this week
Example
shipments this week by store
中文 (简体);

此 周

this year
Example
opportunities this year by sales rep
中文 (简体);

此 年

today
Example
sales today by store
中文 (简体)

今天

week
Example
revenue by week last quarter
中文 (简体)

week to date
Example
sales by order date week to date for pro-ski200
中文 (简体)

周 至今

weekly
Example
revenue weekly
中文 (简体)

每周

weekly year-over-year
Example
growth of revenue by date shipped
  weekly year-over-year
中文 (简体)

每周 逐年

year
Example
revenue by product 2014 product name contains snowboard
中文 (简体)

year to date
Example
sales by product year to date
中文 (简体)

年 至今

yearly
Example
shipments by product yearly
中文 (简体)

每年

yesterday
Example
sales yesterday for pro-ski200 by store
中文 (简体)

昨天

Time

The last keyword returns the last n full periods and does not include the current period. For example, last 6 hours returns the last 6 full hours and does not include the current hour. To include the current period, add this <period>. For example, last 6 hours this hour.
detailed
Example
ship time detailed
中文 (简体)

详细

last hour
Example
count unique visits last hour
中文 (简体)

上一 小时

last minute
Example
count homepage views last minute
中文 (简体)

上一 分钟

n hours
Example
count visitors [ last | next ] 12 hours
中文 (简体)

n 小时

n hours ago
Example
sum inventory by product by store 2 hours ago
中文 (简体)

n 小时 前

n minutes
Example
count visitors [ last | next ] 30 minutes
中文 (简体)

n 分钟

n minutes ago
Example
sum inventory by product 10 minutes ago
中文 (简体)

n 分钟 前

Text

begins with Update
Examples
product name begins with 'pro'
  // returns all products that start with 'pro'

product name begins with 'pro'
  product name begins with 'sport'
  // returns all products that start with 'pro'
  // OR  'sport'

product name begins with 'pro'
  product color begins with 'bl'
  // returns all products that start with 'pro'
  // AND have color that starts with 'bl' (blue or black)
中文 (简体)

开头是

contains
Example
product name contains "alpine" description
  contains "snow shoe"
中文 (简体)

包含

ends with
Example
product name ends with 'deluxe'
中文 (简体)

结尾是

similar to
Example
course name similar to 'hand'
中文 (简体)

类似

not begins with
Example
product name not begins with "tom's"
中文 (简体)

开头不是

not contains
Example
product color not contains 'tan'
  product color not contains 'red'
中文 (简体)

不包含

not ends with
Example
product name not ends with "trial"
中文 (简体)

结尾不是

not similar to
Example
course name not similar to 'hand'
中文 (简体)

不类似

Number

average
Example
average revenue by store
中文 (简体)

平均值

count
Example
count visitors by site
中文 (简体)

计数

max
Example
max sales by visitor by site
中文 (简体)

最大值

min
Example
min revenue by store by campaign for cost > 5000
中文 (简体)

最小值

standard deviation
Example
standard deviation revenue by product by month for date after
10/31/2010
中文 (简体)

标准偏差

sum
Example
sum revenue
中文 (简体)

总和

unique count
Example
unique count visitor by product page last week
中文 (简体)

唯一计数

variance
Example
variance sale amount by visitor by product for last year
中文 (简体)

方差

Comparative

all
Example
revenue asia vs all
The all keyword can only be used as part of a versus phrase.
中文 (简体)

全部

between... and...
Example
revenue between 0 and 1000
中文 (简体)

介于 … 和

= (equal)
Example
unique count visitor by store purchased products = 3 for last 5
days
中文 (简体)

=

everything
Example
revenue asia vs everything
The everything keyword can only be used as part of a versus phrase.
中文 (简体)

一切

> (greater than)
Example
sum sale amount by visitor by product for last year sale amount > 2000
中文 (简体)

>

>= (greater than or equal)
Example
count calls by employee lastname >= m
中文 (简体)

>=

< (less than)
Example
unique count visitor by product by store for sale amount < 20
中文 (简体)

<

<= (less than or equal)
Example
count shipments by city latitude <= 0
中文 (简体)

!= (not equal)
Example
sum sale amount region != canada date != last 5 days
中文 (简体)

!=

vs, versus
Example
revenue east vs west
ThoughtSpot does not support the use of group_* formula measures with the vs keyword.
中文 (简体)

You can use special constants for null and empty values with the = and != keywords: {null} and {empty}. For example: customer name = {empty} or department != {null}. NULL values are missing or invalid (for example, dividing by 0) values. ThoughtSpot also shows NULL if you have n/a in your data. Empty values are empty strings of text or strings containing only whitespace (spaces, tabs).

Location

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.
farther than n miles|km|meters from …​
Example
average hours worked branch farther than 80 km from scarborough
中文 (简体)

远于 n 英里|公里|米 从

near
Example
revenue store name county near san francisco
中文 (简体)

靠近

near …​ within n miles|km|meters
Example
revenue store name county near alameda within 50 miles
中文 (简体)

靠近 … 之内 n 英里|公里|米

Period

day
Example
orders by day
中文 (简体)

日 (date)

day of month
Example
sales day of month by month
中文 (简体)

每月的某一日 (date)

day of quarter
Example
deals day of quarter by year
中文 (简体)

每个季度的某一日 (date)

day of week
Example
customers by week day of week
中文 (简体)

每周的某一日 (date)

day of year
Example
ad clicks day of year by year
中文 (简体)

每年的某一日 (date)

hour
Example
visitors by hour weekly
中文 (简体)

小时 (datetime)

month of quarter
Example
purchases month of quarter by year
中文 (简体)

每个季度的某一月 (date)

quarter
Example
purchases by quarter
中文 (简体)

季度 (date)

quarter of year
Example
opportunities quarter of year last 4 years yearly
中文 (简体)

每年的某一季度 (date)

week of month
Example
product shipments week of month yearly
中文 (简体)

每月的某一周 (date)

week of quarter
Example
revenue week of quarter
中文 (简体)

每个季度的某一周 (date)

week of year
Example
new products week of year last 3 years yearly
中文 (简体)

每年的某一周 (date)


Was this page helpful?