[Demo] MDX Components

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

FieldValueDescription
Hostdemo-db.cube.devFoo
Port5432Bar
DatabaseecomBaz
UsernamecubeMore Foo
Password12345More Bar

Video

Loom

Youtube

Image

Cube Cloud Environment Variables Screen

Card links

Two-column

Three-column

Cube Cloud Promo block

Cube Cloud icon

Playground is available in Cube Cloud on all tiers.

Event promo block

How Rittman Analytics delivers the semantic layer today with Cube
Jul 21, 2025
How Rittman Analytics delivers the semantic layer today with Cube
How Rittman Analytics delivers the semantic layer today with Cube
Upcomingin 3 days
How Rittman Analytics delivers the semantic layer today with Cube
How Rittman Analytics delivers the semantic layer today with Cube
NowLive
How Rittman Analytics delivers the semantic layer today with Cube
How Rittman Analytics delivers the semantic layer today with Cube
Past Event
How Rittman Analytics delivers the semantic layer today with Cube

Case Study promo block

Logo

How RamSoft built its users native embedded analytics—in two weeks. Read the case studies.