In Data Studio - Create a pie chart from several columns - google-data-studio

So I have a database with 5 columns:
Project
Total budget
Authorized to assign
Assigned
Paid
Columns 3, 4 and 5 sum up the total budget; thus each is a part of the total.
I would like to create a pie chart showing the percentage in each step. Would it be possible?

The pie-chart takes 1 dimension and 1 metric so you'll need to transform your data to have the labels in one dimension column and the values in a metric column for it to work in pie-chart format

Related

Looker Studio - Can't the graph series be set to a value greater than 20?

I have a following dataset in google sheets link
To create a bar chart, I set date to Dimension, sum to Metric, and name to Breakdown Dimension in the SET UP screen.
Since name has 22 series, I tried to set Series in the STYLE screen to 22, but there are only values up to 20.
Is this a limitation of Looker Studio?
According to documentation:
At least 1 metric is required. For charts with a single dimension, you
can have up to 20 metrics. For charts with 2 dimensions, you can have
1 metric.
So yes, 20 is your limit in Looker Studio.

How can I add multiple metrics in a pie chart using Google Data Studio?

I have 4 column:
Company name
Work done
Work to be done
Revenue
Columns 2, 3 and 4 (Work done, Work to be done and Revenue) are currency expressed in Eur format.
I need to represent this data in a pie chart as 3 different slices (column 2, 3 and 4).
You will need to convert Work done, Work to be done and Revenue to categorical values in a single column, e.g. something like this:
Company name
Type
Amount
a
Work done
€100.00
a
Work to be done
€200.00
a
Revenue
€400.00
b
Work done
€200.00
b
Work to be done
€200.00
b
Revenue
€400.00
This GDS dashboard generates a pie chart using a Google Sheet datasource with these columns and rows. The pie chart dimension is Type and the metric is Amount. Make a copy of the dashboard to see the chart configuration.

Google Data Studio convert metric to dimension not working

I have imported my GA4 data into Google Data Studio and am trying to see how many giftcards have been sold by their value.
The item revenue metric in GA4 is equal to the giftcard value (i.e. revenue = $200 therefore $200 giftcard was sold).
I want to breakdown sales by giftcard value like so:
Giftcard (revenue)
Count
$200
4
$250
3
$300
6
To do this, I need to set a copy of item revenue as a dimension rather than a metric.
In Google Data Studio, I can create a calculated field with the following formula that should convert the item revenue into text:
CAST(Item Revenue AS TEXT)
The problem I'm having is that while the formula sets the field type as text, it is still regarded by GDS as a metric and can't be used as a dimension.
Even when I try to add text, GDS still recognises the field as a number:
CONCAT(CAST(Item Revenue AS TEXT), " giftcard")
To use a metric as a dimension you can make a combination of data. When defining the graphic element (table, for example) and the respective data source, just create a data combination, but do not combine the data with any other source and just define the combination with the initial data itself. So you will have the same data structure only through a combined structure.
When making a combination of data, data studio recognizes all calculated fields (metrics) as dimensions. Thus, it is possible to make the conversion.

DataStudio: Wrong numbers after data blending

I have 2 tables from the same data source, same columns, one of them is filtered. For calculating total count COUNT_DISTINCT(another_field) metric is used. The percentages are calculated as COUNT_DISTINCT(another_field) and used the Percent of total comparison function. Title is the dimension.
Title
Total count
Percentage
title1
1,734
47.36%
Title
Total count(filtered)
Percentage(filtered)
title1
1,639
45.69%
Which are correct numbers. Now after blending these 2 tables joined by Title I get.
Title
Total count
Percentage
Total count(filtered)
Percentage(filtered)
title1
1,734
6.18%
1,639
9.97%
Now what happened to the percentages? Why did they change? And how to accomplish this joined table with the same numbers as in the separated ones.
The reason of my problem is that when I blend the data it's already aggregated so the percentages lose the sense of the base data. The correct workaround was to just create 2 charts with no aggregated dimensions or any metrics (one filtered, the other one - not), then manage the blended data to add any fields that are going to be used as a dimension, and only then aggregate the data on the blended chart.

How to create the value I want by combining two pivot tables

I have combined two datas which are price 2013 and volume 2013 to create one pivot table. But how can I find revenue (Volume multiply price) by using pivot table? Please help. Thanks. My column field there included Price from data 1 and volume from data 2.
Switch one of the fields to Σ Values (Volume would seem to be the more sensible) and add a Calculated Field (PivotTable Tools, Options > Tools - Formulas) say Named: Revenue and with Formula: Volume*Price.
However depending upon your version of Excel and your data, you may receive incorrect results (eg in the GT row for revenue).

Resources