Skip to main content
Workforce LibreTexts

7.5: Using Dimensions and Measures in Charting

  • Page ID
    48083
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Using Dimensions and Measures in Charting

    When constructing charts, especially with modern analytics tools, you'll often encounter the terms dimensions and measures. Understanding these concepts is fundamental to building effective visualizations and pivoting data appropriately.

    • Dimensions are the categorical variables or qualitative descriptors in your data [10]. They are fields that typically group or segment the data. Common examples of dimensions include names, dates (when treated as categories like year or month), regions, product categories, etc. In databases or BI tools, dimensions are often textual or date fields (or coded numbers that represent categories). When you use a dimension in a chart, you are usually defining how to break down the data. For instance, if you have sales data, choosing "Region" as a dimension will segment the sales figures by region (creating, say, a bar for each region’s sales). Dimensions affect the level of detail in the view—the more dimensions you add, the more granular your breakdown. In SQL terms, dimensions would correspond to fields you GROUP BY when aggregating data. On a chart, dimensions often appear on axes or as categories/labels. A helpful way to think of it: dimensions generally answer "by what?" (e.g., sales by region, by product, by year).
    • Measures are the quantitative, numeric values that can be aggregated (summed, averaged, counted, etc.). A measure is essentially a field that you perform calculations on to get a value to plot. In a chart, measures typically correspond to the axis that shows magnitude. For example, "Sales Amount" would be a measure — you might sum sales for each category (category is the dimension, sales is the measure). Measures produce the numbers that get plotted as bar lengths, line positions, or point coordinates. If you're using a tool like Tableau or Power BI, measures are often marked with a sigma (Σ) icon and default to an aggregation like SUM or AVG. When you drag a measure into a visualization, the tool aggregates it (by sum, average, count, etc.) unless you specify otherwise. So if you have a measure "Quantity Sold" and a dimension "Product Category", the resulting chart might show the sum of Quantity for each Product Category.

    In practical terms, using dimensions and measures together is how you create meaningful charts. The dimension sets the context ("what am I comparing or breaking down?") and the measure provides the value ("how much of it?"). For example, imagine a dataset of students with their major and test scores. If we plot average test score by major, "Major" is a dimension (categorical) and "Test Score" is a measure (numerical) which we aggregate (average) for each major. The chart would have majors on the x-axis (if a bar chart) and average score on the y-axis: each bar's height shows the measure for that dimension group.

    In SQL/database terms: dimensions appear in the GROUP BY clause, and measures are the fields on which we apply aggregation functions (SUM, AVG, COUNT, etc.). In a pivot table, dimensions are the rows/columns categories, and measures are the values being summed or averaged in the cells.

    It’s also worth noting that some data fields can act either as a dimension or a measure depending on context. For example, "Year" could be treated as a dimension (to compare categories of years) or as a continuous measure (to show a trend over a timeline). Most tools default to treating date fields as dimensions (years, quarters, etc.) which can be ordered, and numeric fields as measures. Some tools (like Tableau) explicitly let you toggle a field between dimension and measure status. A continuous numeric field can be used as a dimension if you want each distinct value to be a category (though that often creates too many categories unless you bin them).

    In summary, dimensions slice your data, and measures quantify it. Both are needed: if you only have a measure with no dimension, you usually get a single aggregated number (like total sales overall). If you only have dimensions and no measures, you might just be listing categories without values. Together, they let you create charts like "Sales (measure) by Region and Year (dimensions)". Understanding this interplay helps in constructing effective visualizations and in using analytics software efficiently, because it maps to how you query and summarize data. Always identify in your dataset which fields are dimensions and which are measures, as it will guide how you visualize and aggregate information.

    Dimensions vs Measures in Data Visualization. Details in caption.

    Figure \(\PageIndex{1}\): Dimensions vs. Measures in Data Visualization. This conceptual illustration shows how dimensions (categorical fields that segment data) and measures (quantitative fields that are aggregated) work together to construct a meaningful chart, using a sales-by-region example. (CC BY 4.0; Felix Amoruwa) Access to a detailed description of Figure \(\PageIndex{1}\)

     


    This page titled 7.5: Using Dimensions and Measures in Charting was last modified on Wed, 16 Sep 2026 23:56:08 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Felix Amoruwa.

    • Was this article helpful?