LogoLogo
HomeUser GuidesAPI Reference
  • ๐Ÿ‘Welcome to Whaly ๐Ÿณ
  • Team
    • ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆWhat is a team?
    • ๐Ÿ›ก๏ธSingle Sign On
    • ๐ŸฅทImpersonate
  • Organisation
    • ๐ŸซWhat is an organisation?
    • ๐Ÿ“คUpload your Organisation logo
    • ๐Ÿ”‘Manage Access to your organisation
    • โ“Understanding Licences
    • ๐Ÿ‘ฎUnderstanding User Roles
  • User Management
    • ๐Ÿท๏ธUser Attributes
    • ๐Ÿ‘ญUser Groups
    • ๐Ÿค–Service Accounts
  • Workspace
    • โœ๏ธWorkspace
    • ๐Ÿ“‚Report Folders
    • โœจSharing & Collaboration
      • Share a report to the Web
    • ๐Ÿ“—Catalog
    • โš™๏ธSettings
  • Warehouse
    • ๐ŸฆConnect your Warehouse
    • โš”๏ธAmazon Athena
      • Connect your Athena
    • ๐ŸฎAmazon Redshift
      • Connect your Redshift
    • ๐ŸงฑDatabricks
      • Connect your Databricks
    • ๐Ÿ”ทGoogle BigQuery
      • Connect your BigQuery
      • Grant access to BigQuery datasets
      • Enable multi project support
    • ๐Ÿ˜Postgres
      • Connect your Postgres
      • Whitelisting Whaly IPs
    • โ„๏ธSnowflake
      • Connect your Snowflake
      • Giving access to Snowflake data
  • Models
    • ๐Ÿ’žModels sync
      • Where should my models be managed?
      • dbt Cloud
        • Configuration
        • Exposing models into Whaly
    • ๐Ÿ“ฅPersistence Engine
      • Configuration
        • Snowflake
      • Check Materialisation runs status
  • Workbench
    • ๐Ÿš€Navigating the workbench
    • ๐Ÿ› ๏ธModeling
      • Understanding Datasets
        • General Information
        • Drills
        • Relationships
        • Primary Keys
        • Cache
      • Model Data
        • SQL Models
        • Flow Models
          • Create a Flow
          • Update a Flow
          • Flow steps
            • From Model
            • From Raw
            • Hide Column
            • Filter
            • Lookup
            • Rollup
            • Formulas
            • Group
            • Union
      • Import raw data
        • From your warehouse
        • From third party data
    • ๐ŸงญExplorations
      • Configure an exploration
      • Exploration Templates
      • Tables
        • Configure a table
        • Add related data
      • Metrics
        • Create a Metric
        • Create a Calculated Metric
        • Create Drill Downs
        • Using custom formatting
      • Dimensions
        • Create a dimension
      • Check measure usage
      • Row Level Access
  • Data consumption
    • ๐Ÿ’กExploring data
      • How to explore data
      • Drill Down
      • Forecasting
    • ๐Ÿ’นWhat is a Report?
    • ๐Ÿ“ŠDashboards
      • Create a dashboard
      • Manage tiles
        • Add chart tiles
        • Add text tiles
        • Add navigation tiles
        • Arranging tiles
      • Add a description
      • Share a dashboard
      • Filter a dashboard
      • Push dashboard
      • Delete a dashboard
    • ๐Ÿ“ˆQuestions
      • Create a question
      • Add a description
      • Share a question
      • Push question data
      • Delete a question
    • ๐Ÿ”Refreshing a report
  • Data visualisation
    • ๐ŸŽจTheming
    • ๐Ÿ–Œ๏ธChart your data
      • Bar chart
      • Calendar chart
      • Funnel chart
      • Gauge chart
      • Geo map chart
      • Heatmap chart
      • Interactive map chart
      • Line chart
      • Metric chart
      • Pie chart
      • Retention chart
      • Table chart
      • Treemap chart
      • Waterfall chart
      • Custom time format in time series
  • Content management
    • โญExplorations Section
    • โœ‚๏ธBulk Content Management
  • Embedding
    • ๐Ÿ“ŒEmbed in Business apps
      • Notion
      • Clickup
      • Hubspot
      • Google Chrome
        • ๐ŸŒฑInstall
        • โš™๏ธConfigure the Chrome extension
    • ๐Ÿ‘ฉโ€๐Ÿ’ปEmbedding API
    • ๐ŸชŸPartner Portal
  • Workflows
    • ๐Ÿš€Push
      • Configure a Push
      • Manage Push
    • ๐Ÿ’ผManage Installed Actions
    • โšกActions catalog
      • Airtable
      • Google Sheets
      • Slack
      • Sendgrid
      • Webhook
  • Platform concepts
    • โœณ๏ธQuery Mode
    • ๐Ÿ’ซCaching
  • Guides
    • โ›‘๏ธSupport
  • User
    • ๐ŸคฉUpload your profile picture
  • Connectors
    • ๐Ÿ”ŒConnect your Sources
    • โš™๏ธWarehouse setup
      • BigQuery
        • Configure a Cloud Storage cleaning rule
      • Snowflake
    • โ˜๏ธWhitelisting Whaly connectors IPs
    • ๐Ÿ”SSH Tunneling
    • ๐Ÿ„Schema drift
    • ๐Ÿ”Replication method
    • ๐Ÿง™Source monitoring
    • ๐ŸŽSource catalog
      • Community
        • Github Stars
        • Slack
        • Orbit
      • Database
        • PostgreSQL / Postgres
          • ๐Ÿ’กTip: Extracting the relationships
        • MariaDB / MySQL
      • eCommerce
        • WooCommerce
      • Engineering
        • Github
      • Finance
        • Brex
        • Pennylane
          • Pennylane (Redshift) - General Ledger & Trial Balance
          • Pennylane API - Customer Invoices
        • Qonto
        • Stripe
        • QuickBooks
      • Marketing / Growth
        • Facebook Ads
        • Google Ads
        • Google Analytics
          • Google Analytics (V4)
          • Google Analytics (Universal Analytics)
        • LaGrowthMachine
        • lemlist
        • LinkedIn Ads
        • Salesloft
      • No-Code
        • Airtable
        • Bubble
        • Google Sheets
      • Support
        • Intercom
      • Product
        • Amplitude
        • MixPanel
        • Segment
      • Sales / CRMs
        • Aircall
        • Pipedrive
        • Hubspot
        • Recruit CRM
        • Salesforce
Powered by GitBook
On this page
  • Formatting numbers
  • Formatting durations
  • Examples

Was this helpful?

  1. Workbench
  2. Explorations
  3. Metrics

Using custom formatting

PreviousCreate Drill DownsNextDimensions

Last updated 2 years ago

Was this helpful?

Formatting numbers

Custom number format relies on in order to provide you with the ability to easily customise your metrics formatting.

The following table should be read this way:

  • Number is an example number

  • Format is the format you should type in the custom format input on Whaly

  • Output show how your metric will display using the custom format

Numbers formats

Number
Format
Output

10000

0,0.0000

10,000.0000

10000.23

0,0

10,000

10000.23

+0,0

+10,000

-10000

0,0.0

-10,000.0

10000.1234

0.000

10000.123

100.1234

00000

00100

1000.1234

000000,0

001,000

10

000.00

010.00

10000.1234

0[.]00000

10000.12340

-10000

(0,0.0000)

(10,000.0000)

-0.23

.00

-.23

-0.23

(.00)

(.23)

0.23

0.00000

0.23000

0.23

0.0[0000]

0.23

1230974

0.0a

1.2m

1460

0 a

1 k

-104000

0a

-104k

1

0o

1st

100

0o

100th

Currency formats

Number
Format
Output

1000.234

$0,0.00

$1,000.23

1000.2

0,0[.]00 $

1,000.20 $

1001

$ 0,0[.]00

$ 1,001

-1000.234

($0,0)

($1,000)

-1000.234

$0.00

-$1000.23

1230974

($ 0.00 a)

$ 1.23 m

Bytes formats

Number
Format
Output

100

0b

100B

1024

0b

1KB

2048

0 ib

2 KiB

3072

0.0 b

3.1 KB

7884486213

0.00b

7.88GB

3467479682787

0.000 ib

3.154 TiB

Percentages formats

Number
Format
Output

1

0%

100%

0.974878234

0.000%

97.488%

-0.43

0 %

-43 %

0.43

(0.000 %)

43.000 %

Time formats

Number
Format
Output

25

00:00:00

0:00:25

238

00:00:00

0:03:58

63846

00:00:00

17:44:06

Exponential formats

Number
Format
Output

1123456789

0,0e+0

1e+9

12398734.202

0.00e+0

1.24e+7

0.000123987

0.000e+0

1.240e-4

Formatting durations

To format a duration you can use the following tokens :

Category
Token
Output

milliseconds

S

1 2 3 ...

SS

01 02 03 ...

seconds

s

1 2 3 ...

ss

01 02 03 ...

minutes

m

1 2 3 ...

mm

01 02 03 ...

hours

h

1 2 3 ...

hh

01 02 03 ...

days

d

1 2 3 ...

dd

01 02 03 ...

weeks

w

1 2 3 ...

ww

01 02 03 ...

months

M

1 2 3 ...

MM

01 02 03 ...

years

y

1 2 3 ...

yy

01 02 03 ...

Escape token characters within the template string using square brackets.

Examples

Input (in seconds)
format
output

61

mm:ss

01:01

61

m [min], s [sec]

1 min, 1 sec

61

mm [min], ss [sec]

01 min, 01 sec

Custom duration format relies on in order to provide you with the ability to easily customise your metrics formatting.

๐Ÿงญ
numeral.js
moment duration format