Treemap: conditional formatting - google-data-studio

1) Data
I have a following dataset in google sheets
INITIATIVE
ACTUAL SAVING
BUDGET SAVING
DELTA SAVING
ABOVE BUDGET
Initiative_1
180
200
-10.0%
0
Initiative_2
80
90
-11.1%
0
Initiative_3
80
50
60.0%
1
Initiative_4
40
20
100.0%
1
Initiative_5
20
25
-20.0%
0
2) Expected output table
I would like to create a following treemap based on the success of the initiative. If it's above budget, then make it green. If it's below budget, then make it red. (or you can have any in-between colors, i don't mind, based on percentages).
3) Chart: Configuration + Setup
I have a treemap with default settings.
setup1
setup2
4) Issue: Attempt at solving + Output and 5) Report: Publicly editable Looker Studio with 1-4.
In my Google Data Studio / Looker unfortunately I managed only to build a simple treemap. I failed to find any conditional formatting options. Perhaps there's a way with some community visualisation?

not wholesome but you could use some workaround on similar lines. In the style pane set max to green and min to red

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.

representing 2 different metrics with different columns in line chart

I am preparing a datastudio report. The data studio report consists of the following columns below:
As seen in the picture it captures metric data at a particular time.
The date range is set as the end_time
The X axis will represent the end_time column and the breakdown dimension will be InstanceName column and I am preparing to show it as line chart.
There are 2 metrics readops and writeops columns.
I need to represent these 2 metrics as 2 different lines in the same chart so that the read and write operation fluctuations for the instance at a particular time can be easily viewed.
I am not sure on how to represent this on data studio. If it is 1 metrics, i know it is straight forward. I can set instancename as breakdown dimension and end_time as dimension and date range is set to end_time and can represent it. But to represent the 2 metrics as 2 different lines for a particular Instance, with the time range on x axis, i don't know as I am very new to datastudio. I want to do it without drill-down. similar to the picture below which I got from google cloud console which shows ReadBytes the Big Triangle and the smaller one at the bottom in red for WriteBytes
Can anyone help me? Thanks
There are two approaches based on how the the charts need to be displayed:
1) Filter Control
If the aim is to only display 2 lines (2 Metrics):
readops
writeops
While allowing the user to select the required InstanceName, then a Filter Control (optionally with a default selection) could be used.
The chart would be set up using:
Dimension: end_time
Metric #1: readops
Metric #2: writeops
Editable Google Data Studio Report and a GIF to expand on the above:
2) Multiple Metrics
If the objective is to display a line for each of the InstanceName values as well as both the Metrics (readops and writeops), then the below approach would be one way.
Currently, when using a Breakdown Dimension, Google Data Studio charts (such as a Time Series chart) support a single metric.
Using the Data Set below, based on the screenshot in the question (Editable Google Sheets):
One approach is to create and use multiple CASE statements at the Data Source; for example:
readops_dum
CASE
WHEN REGEXP_MATCH(InstanceName, "(dum)") THEN readops
ELSE NULL
END
writeops_dum
CASE
WHEN REGEXP_MATCH(InstanceName, "(dum)") THEN writeops
ELSE NULL
END
etc...
Editable Google Data Studio Data Source and an image to elaborate:
A Chart could then be created with end_time as the Dimension and using the newly created Metrics; Editable Google Data Studio Report and an image to visualise with a Time Series chart:

Importing Excel to SQL Server from the backend

I have a ton of excel files which I'm trying to import to SQL Server from the backend and then automate it using a batch file.
I know that we can use OPENROWSET inside a T-sql script and load the excel files. I'm also aware of using SQLCMD or BCP options. All of these will work for excel sheets which are straightforward grids.
However, the challenge is, I only need to load a specific region/range of excel cells from a sheet.
For example: if the sheet has the below info, I need to only load the below columns:
Date, Group1, Group2 and Group 3
until it hits the "Blank Row" and ignore everything below it.
Date Group1 Group2 Group 3
Jan-13 25 26 27
Jan 18 35 29 19
20 15
<empty row> <empty row>
Y/Y % YTD % Group %
15 20 40
So, my question is: is it possible to implement this functionality using OPENROWSET in T-SQL? IF so, can you please point me to any links/example on how I can do this? I tried digging around a bit on the MSDN site but couldn't find any.
If this cannot be done in T-SQL, any ideas on how I could implement it from the backend?
Thanks in advance,
Bee

SSRS 2008 wordwrapping issues

i am using SSRS 2008 and currently I am facing wordwrapping issues.
In report I am placing a table and some 6 columns.
My report size is A4 landscape.
When running the report,one of the column has a large value without any spaces,the column was not wrapping up,so I changed the layout to A3 landscape and the wrapping started working..
Is there any relation to wordwrap and page size?
And sometimes when I provide dynamic sort to column,the wordwrap is not working..
And this wordwrapping is happening very slow in IE browser and sometimes on refresh only the wrap is happening..
it sounds like the issue might be that the content for your report might be bigger for the page size you've fit. A3 is signifigantly larger than A4. what you should try is getting the content of the report to fit in an 8 1/2 x 11 size (minus a 1 inch margin so it's really 6 1/2 x 9) in the designer.

Reporting Services Chart - Hard Coded Series

I am developing an SSRS 2008 report which contains a number of simple charts. On the x axis I have the 12 months of this year - Jan 2009 thru December 2009. On the Y is an integer value ranging from 0 to 100 in increments of 10. I am plotting the number of times an issue occurred per month. So January could have a value of 10, February 30, etc. etc.
I would like to have a horizontal line/series that is constant and shows the yearly average for 2008. So, say the average was 30 issues per month in 2008, I would like for that line to be shown in my chart. Basically, I want to draw a straight line across the chart for that value... I can see how to add more complex series, but this seemingly simple task is getting the better of me.
Doe anyone have any idea how this could be accomplished?
Thanks in advance,
Jason
[Update] To add some further details, I am already pulling the average for each row in my dataset and have it set up as its own series. However, rather than plotting a line, this approach plots individual points for each month. While this is close to what I want, I need to join the dots so to speak. The chart is of the Error Bar (Range) variety.
Can you use a column / line hybrid chart? If so then add a constant or dynamic target value to the chart:
Design the chart.
On the Data tab in the Chart Properties dialog box, add a new data value (for example, Target).
Set the target value (see the example in Figure 9 on link this uses a constant target value of 100000 across all categories but you can do it dynamically too). Make sure to use an expression starting with = (equals). Otherwise, the value is not interpreted as a numeric value.
See the example on the MS charts page at http://msdn.microsoft.com/en-us/library/aa964128.aspx
Add the yearly average to each row in the underlying the query. Add data series on just that value.
I managed to solve this issue myself.
As I mentioned, I was using an Error Bar graph. Right-clicking on the series of interest, I was able to change the graph type for that particular series - essentially leaving me with a chart with multiple graphs in it...particularly simple if you know where to look - which i did not! Thanks everyone for your suggestions.

Resources