<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ottava</title>
    <description>The latest articles on DEV Community by Ottava (@ottava_io).</description>
    <link>https://dev.to/ottava_io</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1221162%2Fc044df66-5bb6-4576-81d3-1994a61c74a5.png</url>
      <title>DEV Community: Ottava</title>
      <link>https://dev.to/ottava_io</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ottava_io"/>
    <language>en</language>
    <item>
      <title>Visualizing Multi-Dimensional Data in Action: Vehicle Ownership</title>
      <dc:creator>Ottava</dc:creator>
      <pubDate>Mon, 15 Apr 2024 20:00:22 +0000</pubDate>
      <link>https://dev.to/ottava_io/visualizing-multi-dimensional-data-in-action-vehicle-ownership-33h3</link>
      <guid>https://dev.to/ottava_io/visualizing-multi-dimensional-data-in-action-vehicle-ownership-33h3</guid>
      <description>&lt;p&gt;Did you know that the majority of American families own two vehicles? Surprisingly, there are approximately 5 million single-living individuals who own two or more vehicles. Let's dive into these fascinating insights through our Vehicle Ownership public chart.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1ek1vxqi7u1e7fjqxju.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1ek1vxqi7u1e7fjqxju.png" alt="Image description" width="800" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Exploring numerical data through charts not only offers a visually engaging experience but also taps into our innate ability to process visual information swiftly, as research has shown. Charts provide a clear context and deeper insights into the underlying data compared to traditional numerical formats.&lt;/p&gt;

&lt;p&gt;So, how did we create these insightful vehicle ownership charts using Ottava?&lt;/p&gt;

&lt;p&gt;We began with our multi-dimensional data stored in an Excel file. You can access similar data from various sources such as the US Census Bureau, Kaggle, and Yahoo Finance, among others.&lt;/p&gt;

&lt;p&gt;Once we had our data, we seamlessly transferred it to Ottava's pivot grid with a few simple steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select the desired data table in Excel using Ctrl-C.&lt;/li&gt;
&lt;li&gt;Navigate to Ottava's pivot grid and click on the dot in the upper-left corner.&lt;/li&gt;
&lt;li&gt;Paste the data using Ctrl-V.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For detailed steps on using &lt;a href="https://blog.ottava.io/p/copy-paste.html?utm_source=dev-to&amp;amp;utm_medium=post&amp;amp;utm_campaign=vehicle"&gt;Ottava's Smart Copy/Paste&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Voila! Your data is now in Ottava, and the platform automatically suggests suitable charts based on the presented data in the right panel.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfdhfoe44wgigoqn2vsh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfdhfoe44wgigoqn2vsh.png" alt="Image description" width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You don't need to perform any additional actions; Ottava streamlines the process for you.&lt;/p&gt;

&lt;p&gt;If you wish to focus on specific aspects of the data, Ottava offers easy filtering options. For instance, you can select and filter data for 2-person and 3-person households by using Ctrl-click directly in the pivot grid. Ottava then generates corresponding charts, excluding other options.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ufpmuudeln0zterqru7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ufpmuudeln0zterqru7.png" alt="Image description" width="800" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For further customization or exploration, add the chart to "My View" and tweak it to your preferences.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz479peb88z8mrm6ll1kt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz479peb88z8mrm6ll1kt.png" alt="Image description" width="772" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can change chart types, apply filters, and rearrange fields effortlessly. Ottava's intuitive interface allows you to swap X and Y axes or modify chart types from bar charts to pie charts seamlessly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fivbs62dlh0rpylibpbdz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fivbs62dlh0rpylibpbdz.png" alt="Image description" width="800" height="459"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With Ottava, data exploration becomes a breeze. Uncover intriguing insights and discover hidden trends with just a few clicks. Try Ottava today and embark on a journey of data discovery like never before!&lt;/p&gt;

</description>
      <category>data</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Decoding Data Analysis: Transforming Cross-Tabulation Into Structured Tabular Tables</title>
      <dc:creator>Ottava</dc:creator>
      <pubDate>Fri, 02 Feb 2024 02:53:24 +0000</pubDate>
      <link>https://dev.to/ottava_io/decoding-data-analysis-transforming-cross-tabulation-into-structured-tabular-tables-2lpj</link>
      <guid>https://dev.to/ottava_io/decoding-data-analysis-transforming-cross-tabulation-into-structured-tabular-tables-2lpj</guid>
      <description>&lt;p&gt;Looking at the two tables below, which format do you find more intuitive and easier to read?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3b7ulm8fgkmdswfg5nqs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3b7ulm8fgkmdswfg5nqs.png" alt="tabular vs. cross-tabulated data" width="800" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For years, people have been using spreadsheet software to create &lt;a href="https://en.wikipedia.org/wiki/Contingency_table"&gt;cross-tabulated&lt;/a&gt; (or contingency, multi-dimensional) reports or fill forms. These reports neatly organize categories, dates, and other data points into levels of rows and columns, making them easy to read and analyze. &lt;/p&gt;

&lt;p&gt;However, each report represents just one viewpoint of the underlying data, such as the total sales revenue of each salesman in each quarter of the year. In order to show another viewpoint of the collected data (e.g., the average sales revenue of each quarter for each salesman in the year 2023), we then have to create a new report or fill the form from scratch with spreadsheet software again, which is tedious and error-prone. &lt;/p&gt;

&lt;h2&gt;
  
  
  The Pivot Table Solution
&lt;/h2&gt;

&lt;p&gt;To address the limitations of static cross-tabulated reports, software engineer Pito Salas introduced &lt;a href="https://en.wikipedia.org/wiki/Pivot_table#History"&gt;the pivot table concept&lt;/a&gt; in 1989 with Lotus Improv. Pivot tables allow users to dynamically restructure data, allowing them to easily view reports from different angles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites for Pivot Tables
&lt;/h2&gt;

&lt;p&gt;However, using pivot tables requires a well-structured tabular-style source data model, which can be challenging for general users. Unlike creating cross-tabulated reports, designing such a data model demands engineering training and can be time-consuming and complex.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unpivoting the Cross-Tabulated Table
&lt;/h2&gt;

&lt;p&gt;To unlock the full potential of cross-tabulated data, we need a way to rapidly analyze existing cross-tabulated reports and convert them into structured tabular-style data models for further analysis. This process, known as "unpivoting," involves splitting the cross-tabulation into different parts and then reorganizing them into a structured format.&lt;/p&gt;

&lt;p&gt;By identifying and organizing the side labels, top labels, and numbers, we can create a structured tabular-style data model that represents the original cross-tabulation in a more flexible format.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Step-by-Step Transformation Example
&lt;/h3&gt;

&lt;p&gt;Consider a simple example: an ad hoc spreadsheet-made cross-tabulation report for student scores is laid out like the following. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk64dlmvbthqsc4u3tyrx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk64dlmvbthqsc4u3tyrx.png" alt="example of cross-tabulated table" width="512" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With students being split into two teams on the left columns and subjects on the top row, the central cross matrix area is the corresponding scores of the subject for each student. On the right end columns, column E, are formulas for the total score of each student. On the bottom row (row 6) is the formula for the average score for all students for each subject.&lt;/p&gt;

&lt;p&gt;To convert the above cross-tabulation rectilinear displayed report into a corresponding structured tabular-style source data model, we have to split cross-tabulation into three parts first, i.e., the side labels, top labels, and numbers. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgrjwt539ngvxiqq02jb1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgrjwt539ngvxiqq02jb1.png" alt="identifying different parts of a cross-tabulation" width="512" height="179"&gt;&lt;/a&gt;&lt;br&gt;
Each level of the side labels and top labels corresponds to a field of the resolved structured tabular-style data model. The number itself is also a field of the structured tabular-style data model.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fed7eovmkj3cbq37bfb6v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fed7eovmkj3cbq37bfb6v.png" alt="matching the fields with different parts of a cross-tabulation" width="512" height="177"&gt;&lt;/a&gt;&lt;br&gt;
As the above example cross-tabulation, there is a “Team” field(column A) for “Team A” and “Team B,” a “Student” field(column B) for “Bob,” “Ella,” “John,” and “Sally,” a “Subject” field(row 1) for “Math” and “Physics,” and the “Score” field(area C2:D5) for each corresponding number for each associated student and subject; as shown in the following resolved tabular-style data model:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3qoit0p9raxd5ggddosk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3qoit0p9raxd5ggddosk.png" alt="resolved tabular model" width="512" height="143"&gt;&lt;/a&gt;&lt;br&gt;
Note that each number is uniquely associated with a combination of side labels and top labels, so it is most important to identify the number area first. As long as we identify the number area, the side label areas (to the left of the number area) and top label areas (to the top of the number area) are easily identified.&lt;/p&gt;

&lt;h3&gt;
  
  
  Identifying the Number Area
&lt;/h3&gt;

&lt;p&gt;To identify the number area, the most direct way is to scan reports row by row and pick those cells with numbers, then union such cells into areas. As in the example, we can immediately know that the number area is C2:D5. But for complex reports, there might be other numbers scattered around, making it difficult to identify the real concerned number area.&lt;/p&gt;

&lt;p&gt;Another way is to utilize the information provided by summary formulas. People write aggregation formulas in reports such as SUM or AVERAGE to summarize real numbers of concern, and we can use such information to locate the number area. In the example cross-tabulation report, in column E, we saw four SUM formulas that reference C2:D2, C3:D3, C4:D4, and C5:D5, which union into C2:D5 helping us to identify the number area. In row 6, we saw two AVERAGE formulas that reference C2:C5 and D2:D5, which combine into C2:D5, which allows us to identify the number area again.&lt;/p&gt;

&lt;h3&gt;
  
  
  Identifying the Label Area
&lt;/h3&gt;

&lt;p&gt;After we get the number area, just scan column by column from the left border of the number area until there is no column or empty column to find the side labels; scan row by row from the top border of the number area until no row or empty row to find the top labels.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dealing With Multi-Level Labels
&lt;/h3&gt;

&lt;p&gt;The side labels and/or top labels might be in multiple levels. They each naturally form a group tree from higher level to lower level. Each level is a field for the resolved tabular-style data model. For, the side labels in the example form a group tree like the following:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fondmpb879li6dtantiyz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fondmpb879li6dtantiyz.png" alt="managing multi-level labels in a cross-tabulation table" width="254" height="178"&gt;&lt;/a&gt;&lt;br&gt;
And top labels (with only one level in the example) form a group tree like the following:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvyml2hdg416uihdgeffe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvyml2hdg416uihdgeffe.png" alt="single level labels" width="111" height="148"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then we combine and expand two trees into one master tree and append the corresponding number to the path of each side labels plus top labels combinations, as shown below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxmmjs5jolnu1e17hunb3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxmmjs5jolnu1e17hunb3.png" alt="combining two trees of a decoded cross-tabulation table" width="469" height="351"&gt;&lt;/a&gt;&lt;br&gt;
Note that each level of the trees is associated with a field in the resolved tabular-style data model. Now, we simply traverse the tree from root to leaf and fill in the value in each associated field:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbo4prtal62s6fviqr6do.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbo4prtal62s6fviqr6do.png" alt="the resulting tabular table" width="512" height="143"&gt;&lt;/a&gt;&lt;br&gt;
At this point, we've converted a cross-tabulation into a raw, structured tabular format. &lt;/p&gt;

&lt;p&gt;I'm excited to share this article as I've been exploring various data analysis techniques for my project, &lt;a href="https://ottava.io?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cross-tabulation"&gt;ottava.io&lt;/a&gt;. We've recently implemented this unpivoting technique that I believe could be helpful for other developers, too. &lt;/p&gt;

&lt;p&gt;By incorporating this method into our platform, ottava.io aims to simplify data analysis and manipulation, eliminating the need for manual data preparation or reliance on advanced tools like Power Query or Python Pandas. Our goal is to streamline the process and empower users to delve deeper into their data to uncover valuable insights. Your feedback and input on this approach are most welcome.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>data</category>
      <category>datastructures</category>
    </item>
    <item>
      <title>Pivot Challenge: Can you analyze this aggregated data?</title>
      <dc:creator>Ottava</dc:creator>
      <pubDate>Wed, 17 Jan 2024 17:55:47 +0000</pubDate>
      <link>https://dev.to/ottava_io/pivot-challenge-can-you-analyze-this-aggregated-data-4ncg</link>
      <guid>https://dev.to/ottava_io/pivot-challenge-can-you-analyze-this-aggregated-data-4ncg</guid>
      <description>&lt;p&gt;My mom is a teacher; one day, she showed me a grade book and asked me how she could re-arrange them to see how students were doing in each class across Q1 and Q2 and find out which students were falling behind on any specific subject.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd5eaa5nzsazqorjkttao.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd5eaa5nzsazqorjkttao.png" alt="a simplified grade table"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;“Easy peasy." I was more than confident. Pivot tables and pivot charts are for slice and dice; I immediately thought about using them. I am not an expert, but I've used Excel pivot table at work a few times. I opened up my laptop and input the grade data, starting to insert a pivot chart. &lt;/p&gt;

&lt;p&gt;“Hum,” I immediately ran into a warning message saying that data has to be in labeled columns.&lt;/p&gt;

&lt;p&gt;I updated the table so that the columns are labeled.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe7c1jd35uinjmn5l91xk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe7c1jd35uinjmn5l91xk.png" alt="grade book"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After the change, I was able to select a range and insert a pivot chart, except for the very top quarter row. Nevermind. &lt;br&gt;
The resulting chart looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5lht894q90s9uso92qa8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5lht894q90s9uso92qa8.png" alt="pivot charts in Excel"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Almost there. But it’s not grouping students in the correct classes: Peter should be in Class A and Cindy should be in Class B.&lt;/p&gt;

&lt;p&gt;I switched the rows and columns and tweaked them here and there. I could not get a useful chart comparing the two classes. Also, I could not include Q1 and Q2 in the charts at all. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;I stumbled upon several forums and finally concluded that this grade book is not something I can slice and dice with pivot table in Excel directly. I will first have to convert it into tabular data before I can pivot it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Tabular data, what exactly is it? &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuqv2a8qet8pp2e4zqtar.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuqv2a8qet8pp2e4zqtar.png" alt="Tabular vs Pivoted Data"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tabular data (left) has a row header indicating the meaning of each column, followed by rows of data, either text or numbers. It is well-structured and can be easily filtered, sorted and analyzed.&lt;/p&gt;

&lt;p&gt;On the other hand, the grade book I have (right) is pivoted or aggregated data - it has one or more row headers, one or more column headers, and many numbers in the main grid. In most cases, it looks like a summarized report.&lt;/p&gt;

&lt;p&gt;I've tried to use other popular spreadsheet apps like Tableau, and they all have the same requirement - you have to unpivot or shape your data in tabular format before you can even start to analyze them. In Excel, this unpivot process is normally done with advanced tools like Power Query. Unpivot can also be done using Python or other advanced platforms.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How inconvenient! Wouldn't it be great if we could explore the grade book directly without having to convert it back to the tabular data?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That’s where the Ottava approach comes in to change the game.&lt;/p&gt;

&lt;p&gt;Ottava is designed to work with pivoted or aggregated data directly, such as this grade book, sales reports, or an annual budget. Simply input your pivoted data and it will intelligently suggest appropriate charts for you to pick from.&lt;/p&gt;

&lt;p&gt;This brings two advantages: first, obviously, skipping the unpivot, or pivoted-to-tabular transformation, saves time and makes the process of analyzing pivoted data easier.&lt;/p&gt;

&lt;p&gt;Secondly, the pivoted table has more high-level information. If you take a look at the pivoted data below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4kr4tfqq4ol1n0l46e35.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4kr4tfqq4ol1n0l46e35.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can tell the hierarchy from the table. For example, there are two classes, A and B, where John and Peter belong to Class A, and Anna and Cindy belong to Class B. Also, you can tell that there are two quarters, and in each quarter, students study 3 subjects. &lt;/p&gt;

&lt;p&gt;With this information, we can assume that the user having this table would want to compare individual grades and the grades between Class A and Class B or across Q1 and Q2. And this is how Ottava can help.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8n9icmlxt80mym03ybbi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8n9icmlxt80mym03ybbi.png" alt="Compare Class A and Class B across Q1 and Q2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you turn your pivoted data into tabular data, such hierarchy information is no longer there, and all fields are treated equally. A tool that analyzes tabular data would not be less effective in predicting what the user really wants to visualize.&lt;/p&gt;

&lt;p&gt;Ottava’s distinctive capability of analyzing pivoted data streamlines the data analysis process, saving valuable time and providing users with a seamless experience. Most importantly, now, my mom can easily visualize and explore her grade book with Ottava all by herself!&lt;/p&gt;

&lt;p&gt;If this sounds like something you’ve been waiting for, visit &lt;a href="https://ottava.io?utm_source=Dev-to&amp;amp;utm_medium=blog&amp;amp;utm_campaign=pivot-challenge" rel="noopener noreferrer"&gt;ottava.io&lt;/a&gt; to give it a try and let us know what you think!&lt;/p&gt;

</description>
      <category>data</category>
      <category>analytics</category>
    </item>
    <item>
      <title>Unlocking Data Dynamics: Understanding the Power of Pivoting and Un-pivoting</title>
      <dc:creator>Ottava</dc:creator>
      <pubDate>Tue, 02 Jan 2024 21:51:00 +0000</pubDate>
      <link>https://dev.to/ottava_io/unlocking-data-dynamics-understanding-the-power-of-pivoting-and-un-pivoting-871</link>
      <guid>https://dev.to/ottava_io/unlocking-data-dynamics-understanding-the-power-of-pivoting-and-un-pivoting-871</guid>
      <description>&lt;p&gt;In the realm of data manipulation and analysis, the terms "pivoting" and "un-pivoting" play crucial roles in transforming raw data into meaningful insights.&lt;/p&gt;

&lt;p&gt;These operations are fundamental to reshaping datasets for better visualization, analysis, and interpretation. In this blog post, let's kick back, sip some coffee, and demystify these concepts that make your data dance to the right tunes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pivoting Data and Why Does It Matter?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3RNCeXHr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zoigttqqo04gvb94bwwm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3RNCeXHr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zoigttqqo04gvb94bwwm.png" alt="Image description" width="768" height="330"&gt;&lt;/a&gt;&lt;br&gt;
Pivoting a column means aggregating identical values in that column, resulting in a new table orientation. The initial step involves sorting the table in ascending order based on the values present in the first column.&lt;/p&gt;

&lt;p&gt;This transformative process revolves around the art of rotating or transposing data, seamlessly converting rows into columns and vice versa. The beauty of pivoting lies in its ability to bring order to the chaos of scattered information.&lt;/p&gt;

&lt;p&gt;Picture a scenario where dates are laid out in rows, and sales figures are scattered across columns in a dataset. Pivoting enables you to elegantly rearrange the data landscape. With a simple pivot, dates effortlessly transform into columns, aligning perfectly with their corresponding sales figures.&lt;/p&gt;

&lt;p&gt;Within the domain of data analysis, leveraging pivoted data empowers you to effortlessly employ aggregation and filtering techniques. Embracing the prowess of Pivot not only optimizes your data for analysis but also clears the path for a more streamlined and user-friendly data entry process.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Characteristics of Pivoting:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Aggregate Values&lt;/strong&gt;: Pivoting is often used to aggregate or summarize data. By grouping and restructuring information, it becomes simpler to perform calculations or generate summary statistics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Improved Readability&lt;/strong&gt;: Pivoting can enhance the readability of data, especially when dealing with time series or categorical information. This makes it easier for analysts and decision-makers to identify trends or patterns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Charting and Visualization&lt;/strong&gt;: Many data visualization tools prefer data in a pivoted format. Pivoted data is often more compatible with charting libraries and makes it straightforward to create visual representations of trends and comparisons.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Un-Pivoting Data and What Does It Even Mean?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--h2w31nx0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7kpw6vod4mzp03s03h6b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2w31nx0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7kpw6vod4mzp03s03h6b.png" alt="Image description" width="768" height="330"&gt;&lt;/a&gt;&lt;br&gt;
You’ve heard of pivoting data, but have you ever heard of un-pivoting before?&lt;/p&gt;

&lt;p&gt;In the realm of data manipulation, pivoting restructures data to enhance analysis, but its counterpart, un-pivoting, performs the inverse function. Un-pivoting (sometimes called flattening the data) takes data from a summarized or aggregated state back to its original, more detailed form. This reversal is particularly valuable when dealing with pre-aggregated data designed for reporting purposes.&lt;/p&gt;

&lt;p&gt;The significance of un-pivoting becomes apparent when considering the diverse angles from which data analysis can be approached. While pivoted data provides a convenient view for specific analyses, the un-pivoted form is essential for exploring data from various perspectives. Despite its importance, working with un-pivoted data can be a messy and intricate process.&lt;/p&gt;

&lt;p&gt;To illustrate, creating charts or reports often necessitates the use of un-pivoted data. This step is crucial for delving into the nuances of information, revealing patterns, and facilitating a comprehensive understanding of the dataset. In essence, while pivoting optimizes data for specific analyses, un-pivoting is the key to unlocking the full analytical potential, offering a more granular and nuanced view of the underlying information.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Characteristics of Un-pivoting:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Detail Retrieval&lt;/strong&gt;: Un-pivoting allows users to retrieve detailed information from aggregated datasets. For instance, if sales data is pivoted by product categories, un-pivoting can bring back the individual transactions associated with each category.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database Normalization&lt;/strong&gt;: Un-pivoting is an essential step in the normalization of databases. By breaking down aggregated data into its atomic components, databases can be structured more efficiently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flexible Analysis&lt;/strong&gt;: Unpivoted data provides a level of granularity that is crucial for certain types of analysis. Users can explore individual data points and relationships that might be lost in a pivoted summary.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Ottava Chose to Work with Pivoted Data
&lt;/h2&gt;

&lt;p&gt;By this time, we hope you already spent some time working with Ottava and realized what we’ve done with the data entry method. If you are new, learn more about this no-code SaaS analysis and visualization platform at &lt;a href="https://ottava.io?utm_source=Dev-to&amp;amp;utm_medium=blog&amp;amp;utm_campaign=pivot-unpivot"&gt;ottava.io&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Ottava's unique feature allows users to input raw data directly in a pivoted format (multi-dimensional tables) rather than the conventional tabular data. This choice is driven by our understanding of the benefits and efficiency that such an approach brings to data management. The key reason Ottava enables users to work with pivoted data directly is to mitigate data entry errors that can arise from manual input.&lt;/p&gt;

&lt;p&gt;Moreover, Ottava seamlessly executes the un-pivoting command in the background, a crucial step often required before diving into data analysis. By automating this process, Ottava spares users the complexities of un-pivoting data, allowing them to focus on working directly with the pivoted data and the charts we've meticulously crafted.&lt;/p&gt;

&lt;p&gt;The already pivoted data in Ottava opens up a world of possibilities, presenting users with a curated collection of ready-to-use charts and visualizations tailored to this format. This not only simplifies the creation of dashboards and reports but also ensures that users can effortlessly transform their data into impactful visual representations. &lt;/p&gt;

</description>
      <category>data</category>
      <category>analytics</category>
      <category>excel</category>
    </item>
  </channel>
</rss>
