How can I get % Growth from Previous Column in Google Data Studio? - google-data-studio

I have this data set (Google Sheets):
category
February 2022
March 2022
April 2022
Gold
1457
1627
1890
Silver
1962
2415
3036
Bronze
5683
7520
10169
I want to show the % growth from each month (which is basically growth from the previous column).
For example:
Under Gold, March_2022 growth is:
(1627 - 1457)/1457 = 11.67%.
Expected outcome might be like this (Google Sheet):
category
February 2022
March 2022
April 2022
Gold
-
11.67%
16.16%
Silver
-
23.09%
25.71%
Bronze
-
32.32%
35.23%
How can I do that in Google Data Studio?
I have tried comparison calculation: percent difference from total (for both corresponding and base data) but it doesn't work:
My last option might be to hard code it in query, but I prefer to do that in Google Data Studio.
Google Data Studio report

The calculated fields below could be used (#1 ensures that values are displayed as NULL while #2 and #3 compare values between each month), setting the Type to Numeric > Percent; to display NULL values as -, select the respective symbol from the Missing Values section in the Style tab of the table:
1) February 2022
NULLIF(February 2022 / February 2022, 1)
2) March 2022
(March 2022 / February 2022) - 1
3) April 2022
(April 2022 / March 2022) - 1
Publicly editable Google Data Studio report (embedded Google Sheets data source) and a GIF to elaborate:

Related

Different results between dimension Month and Date (Year Month)

I am trying to generate a list of users but I get different values depending on which dimension I use.
The data source is a GA4 property, but it also occurs with UA.
This is my example: https://datastudio.google.com/reporting/f75c1478-e738-45ad-8a23-97c51b69c374
For the attached table, if I use the "Month" dimension, it returns a different value that I use the dimension "Date (Year Month).
Could someone explain me the difference and how I could fix it?
Thank you very much in advance!
Date (Year Month)
Users
New users
1
Aug 2022
70,469
52,103
2
Jul 2022
71,939
54,837
3
Jun 2022
75,868
57,613
4
May 2022
85,273
67,462
5
Apr 2022
82,099
63,977
Month
Users
New users
1
Aug 2022
58,674
52,025
2
Jul 2022
60,150
54,748
3
Jun 2022
62,643
57,498
4
May 2022
73,172
67,398
5
Apr 2022
69,164
63,893

SSRS Color code based on comparison between two columns in a matrix

I have build a matrix in my report that brings data for every month. I need to check if the data for current month is greater or lesser than the previous month. If the data is greater than the previous month, then the foreground colour will be turned as "Green" else "Red"
To put things into perspective, example is attached herewith.
SSRS Report:
Preview of the report:
As you can see the preview of the report,for first row, Sep 2019 revenue and Oct 2019 revenue are 574,100 and 217,900 respectively. Hence the october 2019 value will be in RED as revenue has fallen down as compare to Sep 2019. Similarly, the logic is same for "Gross Margin" column
How do I enter the color value for each month and subsequently for quarter values also (as quarter values will also be compared)?
Question EDIT

SSRS matrix group by error

I have an ssrs matrix with total in rows and months as columns .. something like this .
Jan Feb March
Total1
Total2
I can choose a month as a parameter and my matrix shows the results for the month and the two months before the current month.
When I choose August :
I can see June July August
When I choose September :
I can see July August September
But when I choose October
I see October August September
My client wants to see it as August September October
I don't know the reason for this behavior .But can anyone help me with this ??
I tried doing the sort for the tablix as follows :
=(Fields!Month.Value)
Month is a number like 1 for Jan, 2 for Feb. I add it as a sorting expression but I dont see any change in the sorting.
according to your data.
August = "8"
September "9"
October = "10"
it looks to me like you need to convert your month to an integer type, Sort is picking up your month as a string value.
try converting your month field to an integer in your sort expression and then running rerunning the report.
something like:
=CInt(Fields!Month.Value)
I finally found what was going wrong with my solution .
I was adding the sorting on the "tablix properties" section .
Sorting needs to be added on the "Column group" and not on the "tablix properties" and this did the trick in my case. :-)

Transposed day and month values in MS Access 2007 when using Update Query in SQL View

I have a challenge saving the date to an MS Access 2007 database especially for dates with the day less than the 12th of a month (i.e. the day between 01 to 11) If for example a February date - 07/02/2013 (dd/MM/yyyy) will be saved as 02/07/2013 in the database. While a similar February date 14/02/2013 will also be saved 14/02/2013. Retrieving the two dates: The first date will brought out as 2nd July and the second date will be 14th February.
Notice that the day and month values is transposed for dates less than the 11th. This happens when I use an update query (either from VB 2005 or directly within MS Access using SQL pane). I have set both the system short date settings (in Windows 7 OS) and the Date Format at field level (in the MS Access Table) to dd/MM/yyyy.
try - DateValue("dd-mm-yyyy")
or - Format(Date,"dd-mm-yyyy") as an expression builder.

SSRS BIDS 2008 Parameter Date Range

I have produced a report where the user will need to view financial years data.
So for example April 2010 - March 2011 will have one years data however if the user selects this as in my image, data for January, February, March in 2010 will be brought as well as January, Febrary and March 2011, when I dont want the Jan,Feb,Mar for 2010 as the financial year begins in April.
I therfore need to be able select a data range using parameters to stop bringing data through that I didnt ask for.
Can anyone advise me how to do this?
You can build a month-year key to use instead of your ad-hoc year and month parameters. You can then display it for example as YYYY/MM - so that you can select 2010/04 through 2011/03.
Another option would be to have from month (with year) to month (with year).
Yet another option would be to have a year, month, and number-of-months, selecting 2010, 04, then 12 for number-of-months.
Your two parameters aren't aware of eachother in the way that you want it to be.

Resources