Category "pivot-table"

Pandas Pivot is not producing desired output

I my data looks like below. I am trying to pivot the dataframe such that SCHEMA NAME AND TABLE NAME are in columns and Row Count, Table Type, date created and D

Joining Three Tables (Reporting) in Excel using PivotTable, Power Query or MS Query

I have three Worksheets in a Excel Workbook 1-sht_Customers 2-sht_Quotes 3-sht_Contacts Each of the Worksheets contain one table each. 1-tbl_Customers 2-tbl_Quo

Pivot rows into columns Firebird 2.1

I have a table containing several kilometers about 100 table of kilometers I need to rotate rows into columns like this pivot rows into columns The number of co

How to filter by condition in a pivot tab of excel?

It is a movie dataset in a simple pivot table where the row fields are by the years the movies were released and for columns I have used "box office revenue" as

How to unmelt a completely melted table

I have this dataframe df which I have melted and then using pd.pivot_table I am able to get the table structure back at least looking at the rows it seems so -

Pivot table data source automatically update

Pivot table data source Please see the above image. I am trying to dynamically update the pivot table data source whenever a new sheet is created. Essentially I

How to remove the wording "metric" in apache superset "pivot tables v2"?

Inside the apache superset pivot v2 tables, the word "metric" appears between the columns (as in the image). I don't like it and my intention is to remove it.

#DIV error in Google Sheet related to Pivot table

I am trying to fix an error in googlesheet especially related to Pivot table. Especially when I make extra calculations from the Pivot table I get the #Div erro

Analysis Services: How to show the original parameters of Pivot Table Excel after computing filter?

When connecting to AnalysisService / Cube with Excel, I have a PivotTable in a Excel Tab. Here it is. And the PivotTable settings is in the Sheet1 THEN I do d

Python pandas : pivot_table simple string aggregation and sort

I'm trying to achieve something with pandas which is very straightforward to do in Excel PivotTable: From what I've seen, the following code seems logic, but

"Unable to set the CurrentPage property of the PivotField Class" with Pivot Table Filtering Attempt

So I have been trying to figure out what I am doing wrong for the past two days and I can't seem to get past this error. The error is "Unable to set the Current

How to pivot a dataframe to a wide format?

Suppose I have a pandas DataFrame like this: import pandas as pd data = pd.DataFrame({'header': ['age', 'height', 'weight', 'country', 'age', 'height', 'weight

Pandas pivot table. Getting modes and relevant percentage

Here is the problem. While creating a pivot table in pandas data frame, I need to aggregate the column values for their modes as well as their relevant percenta

Problem with fetching data from database in Laravel

I have a search form to list properties/ads through certain criteria. I am trying to fetch all properties based on offer or demand, depending on what is clicked

(Python) Pivot table- cannot cast array data from dtype('float64) to dtype('<U32') according to safe rule

I am having some troubles with the cast array data error when making a pivot table. I have checked thoroughly and all the components are float64. However the er

How do you create a "reverse pivot" in Google Sheets?

I am trying to produce a "reverse pivot" function. I have searched long and hard for such a function, but cannot find one that is already out there. I have a su

Pivot table Calculated field - Sumif(s) between two dates?

I'm attempting to calculate periods of out of stock for a fleet of rental equipment that has been in service for the past few years. I'm having trouble creating

openpyxl - Load only a single sheet to prevent pivot tables from being involved

I want to load an .xlsx file with openpyxl: from openpyxl import Workbook, load_workbook wb = load_workbook(filename = "my_excel_file.xlsx", data_only = True)

How to combine two pivot tables into one chart in excel

I have two pivot tables, each with two columns. One column is a range from 0 to 6.5, grouped by .5 and the other column is the percentage of the whole column th

create a repeatable pivot table that loads on the same worksheet

I try to take a table and create a pivot table adjacent to it. This macro needs to work on separate worksheets so the table and pivot table names need to be ge