I have to report on some data covering November, December of 2013 and Jan, Feb of 2014. I know how to chart over a calendar year but I'm struggling with this...any one know how i can chart this in nov,dec,jan,feb order???
cheers
You have to have some field available in your dataset or a calculation based upon a field/fields that orders them correctly. If you have something like yyyy-mm (ex: 2013-11) you can set the sort order of the category group within your chart. Leave the actual value as you want it to be seen, just change the sort order.
Here's a good blog post that (I think) explains exactly what you are trying to do: http://www.allaboutmssql.com/2013/06/ssrs-in-charts-how-to-sort-labels-on-x.html
Sort the data first by =Year(Fields!YourDateField.Value) and then by =Month(Fields!YourDateField.Value)
Thanks for the input... i found this Custom ordering of series field for stacked chart in SSRS08 TFS
so i manually changed the value value with a switch and then ordered A-Z
All good now
cheers
Related
I’m having a problem with division in my report where its not calculating correctly for the month/year column (CalHeading), which has its own column group.
My expression for both currently below is:
=Sum(Fields!PeriodSales.Value)/Sum(Fields!PeriodSales.Value, "Customer")
As below 72.64% is displaying correctly for the period total column, but the 3.03% should be displaying 94.03%
Edit - I had the wrong code in that was displaying 3.03%, but its still incorrect.
What it looks like its doing is for example putting Feb 2022 as 22.64% of the whole period total column (1,040,677.83 of 4,596,041,37)
Temp Column
Any help would be greatly appreciated
I've managed to get it to work by referencing the text box; e.g.,
=Sum(Fields!PeriodSales.Value)/ReportItems!Textbox306.Value
Will this cause any issues going forward?
data in SSRS shows like this as below using the Matrix -
Can someone please help me how to get the totals for BB-1,BB-2 ,AC-1 ,AC-2 below for all the countries.I am using the running value function between the dates Aug-2015 and Jan 2017 for Columns BB-1,BB-2,AC-1,AC-2.
Type A always belong to BB-1 & BB-2. Type B belongs to AC-1,AC-2.
row groups-
Country
Type
Column Group
Date
It sounds like you want to create a secondary matrix that displays the information with a different grouping entirely. It is possible to have two matrix/tables that use the same data, and that's how I would go about solving this.
Amend the report design to the following:
Amend you report design, underneath main report add in another row group [Names], adjacent below, along with a sum(Value) field to look like this:
Report should like this:
Amend the report design to the following:
enter image description hereI have to show the data in the report just like above .. i need to get the difference of Medicaid 2017 value and Medicaid 2016 in Med diffrence
commercial 2017 value and commercial 2016 in commercial difference column... note that 2016 & 2017 are dynamic values as year changes these will change..any pointers would really help? please see the attached images data & matrix
Appreciate your response.
Thank you!!!! enter image description here
Each row is going to be grouped by the salesperson so the only thing we need to detect for our calculation is the year.
=SUM(IIF(Fields!Year.Value = "2016"), Fields!Medicaid.Value, 0)) - SUM(IIF(Fields!Year.Value = "2017"), Fields!Medicaid.Value, 0))
What this does is run the sum function through the dataset (with group filter). In sum we can nest the IIF logic to detect what the year field is in the dataset. If it is the year we are looking for, we return the value of the data (in this case the medicaid value). The end result is the sum of all values matching the date. Then we subtract that by the next year and there is your difference.
I know you want to keep this dynamic. You'll have to test your own solutions since I'm not sure how you will handle this in your data. Assuming at the very next year this will flip to current year and previous year, instead of hard coded year you would use:
Now().Year and Now().addYears(-1).Year
I think all this code should work but I did not test. You might have to confirm those VBNet DateTime functions. Just tried to get you an answer on my lunch break!
I have a chart that is trying to show dates in the x-axis. I really need it to be a category and show text labels instead. I can't figure out a way to switch in Access 2007. What can I do?
Best way to do this is to trick access into thinking that the values are not dates. You can convert to strings, add special formatting, or just an extra space like Jan 15, 2015. Two spaces between Jan and 15. Then it will automatically switch from Date to Category.
My data and this SSRS chart have a ton of problems, I'll try to keep my question(s) succinct.
First, as you can see by this chart and this screenshot of my data (just showing date and April Savings), my expression/chart is not summing all of the savings within a month, which is my goal.
It appears to be picking one amount within the correct month and using it. I set up a tool tip for April so I could see what number it's pulling (since clearly the chart columns are not representing the data whatsoever - another issue).
You'll see in the SQL data screenshot that it does indeed pull $1,230 from the April 2013 Savings. How can I get this to Sum within the month AND still do a running value from the beginning of time data began to current, this often will include multiple years.
Here's my Chart Data (note that my Team Goal works perfectly, and is even charted correctly - but if anyone knows how to force that line to go from end to end on my chart, feel free to let me know.) :
To summarize, how can I sum each month's data, while still do a running value across the months AND years?
Here's my Expression for Implementable Savings:
=RunningValue(Sum(Fields!ImplementableSavings.Value), Sum, nothing)
(obviously if I can get one working, I can get both)
My Expression for ImplementedSavingsMonth:
=MonthName(Month(Fields!ImplementedSavingsDate.Value))
My Expression for ImplementedSavingsYear:
=Year(Fields!ImplementedSavingsDate.Value)
Let me know if there's anything else I can provide.
Quick sidebar question: WHY does my chart column collect one piece of data. IE: see the tool tip $1,230 for April 2013), but the chart column displays that the number is around $1.7M? And in this scenario, both of my blue and yellow columns are displaying the same number, so why does blue always appear to be a higher number? I will ask this as a 2nd question if it's inappropriate for me to ask here.
I would use this Expression for Implementable Savings:
= RunningValue ( Fields!ImplementableSavings.Value, Sum, "Chart1")
.. assuming your Chart's name is Chart1.