MDX Components
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Code block
Default
cube(`monthly_retention`, {
// ...
dimensions: {
months_since_signup: {
sql: `DATEDIFF('month', ${CUBE}.signup_month, ${CUBE}.activity_month)`,
type: `number`
},
signup_date: {
sql: `(signup_month AT TIME ZONE 'America/Los_Angeles')`,
type: `time`
}
}
})
With tabs
YAML
JavaScript
cubes:
- name: monthly_retention
# ...
dimensions:
- name: months_since_signup
sql: "DATEDIFF('month', signup_month, activity_month)"
type: number
- name: signup_date
sql: "(signup_month AT TIME ZONE 'America/Los_Angeles')"
type: time
Alert Box
🚫DangerBox
DangerBox
DangerBox
ℹ️InfoBox
InfoBox
InfoBox
✅SuccessBox
SuccessBox
SuccessBox
⚠️WarningBox
WarningBox
WarningBox
Buttons
Inline Button
You can implement the element directly by using inline Button component.
Inline code
SQL query SELECT * FROM users
.
Selected text
- TODO
Table
Field | Value | Description |
---|---|---|
Host | demo-db.cube.dev | Foo |
Port | 5432 | Bar |
Database | ecom | Baz |
Username | cube | More Foo |
Password | 12345 | More Bar |
Video
Loom
Youtube
Image
Card links
Two-column
Three-column
Cube Cloud Promo block
Playground is available in Cube Cloud on all tiers.
Event promo block
Case Study promo block
How RamSoft built its users native embedded analytics—in two weeks. Read the case studies.