Create a Pie Chart from single row, multiple column dataset in SSRS - sql-server

I'd like to create a pie chart from a dataset that returns a single row with multiple columns in SSRS. Is this even possible?
I've tried unpivoting the data so I can have multiple rows, and I can't quite pull it. It seems I can't unpivot aggregated data.
So I'm not sure what my next step is. Should I try to unpivot the data, or can I build an expression for the values in the pie chart?
Here's sample data:
ID | IndivMonthSales | IndivBudget | IndivDifference
PAW $30,456.31 $60,000.00 $29543.69
The result I'm looking for is the Pie chart to use the values from IndivMonthSales and IndivDifference (which add up to 100%)
I guess there's 2 questions:
is it possible to unpivot aggregated data (if so, how?)
is it possible to use expressions for Pie Chart values (if so, how?)
I'm very grateful for any and all help.
Cheers!
Dave

I believe what you are asking for can be very simply solved by placing both measurements as values in the pie wizard:
Resulting in :

Related

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.

SSRS - show missing axis on column chart where there are no values?

I have a column chart in SSRS that looks like the attached. This shows the percentage of calls across the day. I have been asked to also show the hours on the chart where there were zero calls.
I have tried adding this into my dataset in SQL however this turned almost 200 rows into 20000 rows (due to the period of time looked at which can sometimes be years)
I have tried using the lookup function to add a time dimension into my report, and then join the dataset onto this time dimension - I then found out that I can't use SUM in a lookup function so I am a bit stuck. Does anyone have any workarounds for this?
Value expression is "=Sum(Fields!Calls.Value) / Sum(Fields!Calls.Value, "UsageSummary")"
What chart looks like now (wrong)
What chart should look like (with all hours included)
Have you tried clicking on the horizontal axis properties
On the Axis Options update the Interval from Auto to 1

Google Data Studio piechart from column with multiple values per cell

I have an excel spreadsheet from a Questionnaire. One of the questions was in checkbox format. The result of this question are held in a single column, and where the user has selected more that one answer, the answers are separated by comma's.
What devices do you own? Mobile, PC, Laptop, Tablet
So in a single cell I get 'Mobile,PC' when these two are selected.
I am using Google Data Studio to visualise the data, but stuck on how to create a graph that shows all the values individually.
At the minute I get a combination for every value. So a value of 1 for 'Mobile,PC' rather than a value for 1 'PC' and '1'Mobile.
Google Data Studio doesn't allow countif statements, so a bit lost.
I have tried to TRIM, COUNIF and REGEX but none have worked.
Count(REGEXP_MATCH(Device, "PC"))
I'm a bit lost on this, tried so many combinations. If someone can put me on the right track I would be very grateful
I don't think you'll be able to achieve that with a pie chart without changing your data source first as it needs one dimension (Device) and then one count metric which your data doesn't seem to support.
You could create 4 metrics like
SUM(
CASE
WHEN REGEXP_MATCH(Device, "PC") then 1
ELSE 0
END
)
And put them into a Stacked bar / column chart. You might need to create a dimension that has a single value to avoid having multiple bars/columns.

SSRS plot value of DataSet multiple times

I have a table of data like so.
I would like to plot it on the same graph. I managed to get it to plot when putting it in a table that sorts on category "GreenTemp1", but what I would like is to plot it together on the same chart. Can anyone help me?
Edit:
I would like it to plot it like this but it does not show anything.
Add a separate series for each of the DeviceNames. The value expression for each series can be along the lines of:
=iif(Fields!DeviceName.Value = "GreenTemp1", sum(Fields!Value.Value), Nothing)
Obviously change the number for each series. Give each series its own legend name as well, and remove the category group for DeviceName.

creating a simple pie chart

I need to create something like this in SSRS:
My source dataset is fetchxml. I have actually two datasets.
One dataset is just the datapoint "347" whereas the other datapoint is "1000"
Dataset_Active returns 347
Dataset_InActive returns 1000
I have the option of using these fields for the following 3 categories:
My issue is that I cannot use values from multiple datasets.
How do I create a pie chart where the data comes from 2 different datasets? Also in the case that I just neeed to graph 2 values, should I use anything in the category/values/series or just use values?

Resources