SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS - How to create height dynamically for bar charts


SSRS - How to create height dynamically for bar charts

Author
Message
nicklas.jonsson86
nicklas.jonsson86
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 85
Hello,

I have earlier calculated the height for all my bar charts dynamically by specifying the Maximum value for the y axis in the Maximum properties.
For example, =MAX(Parameters!AvgValue.Value) * 2.0

This has been working for me and it will increase the height based on the maximum value displayed in the graph.

On the Y-axis I am counting the days, let call it CountOfDays.

Categories axis: Date for example YearMonth.

Values consists of all AverageValues for each month/year.


Now to the problem that has occured for me. I have changed some of these graphs to be a stacked bar chart. I have categories in each bar, for example
status 1, status 2, status 3 and so on. I added a new attribute, called Status, to the dimension in order to make this possible.

The expression doesnt work now and I have used different kinds of expression.

Does anybody know how I can solve this or which type of expression I can use?

The expression does only work when I take away Status from the dimension and from the dataset.

Thanks for all help!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search