I assume you do have a flat table with fields
Year, Month, Value
2011, Jan, 123
2012, Jan, 231
It might be best to create a date field from Year and Month and to convert your Month string field to a dual value field (this makes it much easier to sort your Month in chronological order later on).
So maybe use two additional lines in your load like:
LOAD Year,RAND()*500 as Value,
date(date#(Year&Month, 'YYYYMMM')) as MonthStart,
month(date#(Year&Month, 'YYYYMMM')) as Month
Starting from this flat table, it should be easy to create a line chart, use Month as dimension, =sum(Value) as expression (since Month can hold multiple values for multiple years, you need to use an aggregation function here), and create a list box to choose a year (you can force always one selected value in list box properties).
Please see attached,
comm52760.qvw 151.5 K
Yeah awesome, i really appreciate the help! Now i have a listbox with year and month and its works out fine! But i still have the problem that i cant make the line chart, its works fine when i use bar charts.
But when i choose line chart, and i take the months on the x-axis and the values on y-axis and and take the sum(value). Then i get dots for all the values and some wierd lines (A red and a yellow one), but i dont got any lines between the dots.
If's makes it easier for you, maby i can take a screenshot and upload?
Sure, any more information might help. You can also post a small qvw file here.
Are you able to open my sample app or do you work with a personal edition?
Try creating a new chart object, select line chart in general tab, then 1 dimension Month (well, even 2 dimensions Year, Month should work quite nicely with one expression) and 1 expression =sum(Value). What do you mean with taking months on the x-axis (I assume you use Month as dimension), and values on y-axis (I assume you just create an expression =sum(Value))?
Yeah i use the personal edition. I add my qvw file here so you can see my problem!
nydag0.qvw 152.8 K
Just remove the second dimension [Value 2012].
Start with ONE dimension, Month and
as expression (as is). [Value 2012] is your measure, you usually don't use this as dimension.
You can select the years (2012 or 2013) using the list box then, but if you don't select a year, you will get the sum of 2012 and 2013 for each Month.
If you don't want that, use the option 'always one selected value' in general properties of the list box (you need to select one value first, then apply the option). Or use two dimensions, Year and Month, in your chart, thus you get a line per year.
Hope this helps,
Well, there are lots of resources.
You can start with the free online courses and the manual, or even take one of the class-room courses.
I think there are now a few books around:
I personally started with the tutorials, attended a class room training and then just went on with creating some smaller and bigger samples.
Reading and contributing a lot here in/to the forum helped me most.
Here are some more tipps / opinions on how to get started:
Since I don't know you, it's hard for me to give you an advice on how you should go on, there is no one single way for everyone.
If you want to focus on scripting, it surely helps to know any programming language.
Knowing some data modeling basics and some SQL should be on your list (unless you want to focus on front end only, but I wouldn't recommend that).
Reading some books about dashboard design might be a good idea.
Just keep on going, it only gets easier.