Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.31 KB

3-PinQuery.md

File metadata and controls

32 lines (20 loc) · 1.31 KB

3 - Add a tile to the dashboard by pinning a query

  1. Navigate to the Query experience by clicking in the left navigation menu. Click Add Cluster and provide the same details used earlier:
  • Cluster URI: https://demo11.westus.kusto.windows.net/
  • Database: GitHub

  1. Let's use the following query:
// Let's see the popularity trend of vscode and typescript
EventsAll
| where Repo.name =~ "Microsoft/vscode" or Repo.name =~ "Microsoft/TypeScript"
| make-series count() default=0 on CreatedAt in range(datetime(2016-01-01), datetime(2019-06-11), 30d) by RepoName = tolower(tostring(Repo.name))
| project CreatedAt, RepoName, count_
  1. To add the query to our existing dashboard, click the Pin to dashboard option in the Share menu.

  1. Fill in the form, as shown below and click Pin.

  1. The newly added visual now appears on your dashboard. By default, the tile shows a table visual. Edit it to make it an Area chart and save your dashboard. It should look as shown below.