SSRS SORTING OF MONTH COLUMN IN MATRIX - ssrs-2008

I have created a report in SSRS by using matrix. I gave column as Months.
But the months are displaying in sorted format. I want it in normal form like from Jan to Dec..

Add a field of month's number and use it to sort months group.

Related

How is it possible to calculate value for the same day last week in tableau for every day?

I would like to calculate values for yesterday for every date in a table.
Firstly I have simply calculated the number of orders for each date using COUNTD function.
But afterwards I encountered some problems trying to calculate values for "yesterdays".
Please refer to the image
example
For example for 12th of April I would like to obtain the value for 11th of April.
On the internet there are a lot of examples using today() or max() or table functions but they do not give the required result because a would like to filter for example 12th April but still see the value for 11 April.
Could you please help, how is it possible to do this?

How to draw continues lines across panels in Tableau

I want to plot a couple of measures by months over the last three years. The plot would be divided by year. So I put year and month for columns and the measure values for rows. The year is defined as DATEPART('year', [Month Date]) and month is DATEPART('month', [Month Date]).
The plot looks like this.
The lines are broken between years. Both YEAR and MONTH are blue (discrete), but if I change them to green (continuous), the lines are connected but it looks weird.
I wonder how to make continuous lines across year?
What has happened is you have converted a date part (i.e. Month = March) to a continuous unit. What this does is simply changes March to 3. This looses the context of what the actual date is (i.e. March 2007). To change this right click on the date field on the column. You will see two separate areas to format the dates i.e. there are two years (2015, 2015), two quarters (Q2 and Q2 2015) etc. The first is a date part and the second is truncated date from the original date/timestamp.
You want to change the format to the second Month option (Month May 2015) and ensure the data type is continuous.
This should give you a continuous line across the year. If not screenshot me where you get to and I can assist from there.
Check if the last week and first of the next year is the same, I have a similar issue and solved it by passing the dates as Day-Month-Year.

Tableau: Calculate Monthly and Yearly Averages from Days

I have a few years of data by day that looks like this:
Date Count
1/1/2015 1000
1/2/2015 1010
1/3/2015 1040
I would like to create a calculation that allows me to switch between Day, Month and Year using Tableau's date formats without having to calculate the average for each individual format. For instance, the monthly average for Jan 2015 would be the total of Count for all 31 days in January 2015 divided by 31.
Since you have no missing data (days) and no duplicate data, the solution is extremely easy.
Place the Count field on any shelf (except the filter shelf). For example, place it on the Rows shelf. Click on the Count field on the Rows shelf and change the aggregation to AVG(). You should see the AVG(Count) of all your data rows at this point.
Place the Date field on any shelf (except the filter shelf). For example, place it on the Columns shelf. Click on the Date field pill on the Columns shelf, and choose the level of granularity you wish from the SECOND batch of choices. (The first batch returns date parts, not dates) For example, choose Month. You'll see the Avg(Count) per month.
Place any other dimensions on shelves to either filter to specific dimension values or to show the average counts broken down by your other dimensions.
Users can drill up or down the granularity of your dates by clicking the + or - icons by the date axis, or by clicking on the Date pill. You can choose to display the dates as a continuous or discrete value.
If you don't like the +/- UI, then you can create a string valued parameter with values: year, quarter, month, day etc, and then create a calculated field using the date_trunc() function to allow, say, a dashboard user to to choose the date granularity from a different type of UI control.

Aggregating data from the US stock market in Tableau, using different time frames

I am a very basic user of tableau and I have not found an answer to my question.
I have a txt file that has historical daily data for 98% of all the stocks in the US, with their daily capitalization. Each stocks has its TICKER, Daily Market Value for every trading day of the year, and its SECTOR.
I did a simple time series that display SUM([Mktval]) (sum of all individual market values) across all stocks, on a daily daily, and where I can see that the total value as of 2016 is about 24 Trillion USD, as in the image below.
When I change the view column from DAY to YEAR, I don't see the right values, but something a lot larger. So I realized that I need to do SUM([Mktval])/252 to get the right value for a year (there are 252 trading days in a year).
If I change the view to MONTH, as in the chart below, the numbers are again wrong because 252 is not the right value to use in the division.
Is there any way that Tableau can adjust the values automatically to reflect the AVG MktVal across different time intervals?
Thanks
Replace SUM(Mktval) on the Rows shelf with the following calculated field
avg({ fixed day(Date1) : sum(Mktval) })
That solution is all in one step. It is perhaps a bit more clear to use 2 steps. First, create a calculated field called total_daily_market_value defined as
{ fixed day(Date1) : sum(Mktval) }
Then make sure that calculated field is a measure. It is an LOD calculation that you can think of as a separate table with one value for each day showing the total market value for that day.
Drag that measure to a shelf, and then change the aggregation function to AVG(), MEDIAN(), MIN(), MAX() or STDEV() as desired. Tableau will aggregate the total_daily_market_value using your chosen aggregation function for whatever values of Date1 are in your view.

how to freeze values of column in Tableau

I want to create a scattered plot of users usage across Month.
whenever I filter users only relevant values appear i.e if user A has used a report in Jan Feb mar and Sept only those values appear on columns tab.
I want all the months displayed on the column and then a scatter plot on it(row being Number of Records)
Try going to Analysis/Table Layout and selecting Show Empty Columns.
Note: If you're using a secondary data source, this functionality is disabled.