﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services  / Databar with single value / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 21:54:20 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>You got it. Basically, I'm not sure how to structure the query or the bar graph to make it move around. For example, I have a class that has 100 available seats but only 25 of those seats are taken. So I want to move the bar 25%. The class size (e.g. 100) will have to be hardcoded, but the seats take (e.g. 25) will come from a query. It's a newbie question, but I haven't dealt with charts much before.</description><pubDate>Wed, 05 Sep 2012 10:56:53 GMT</pubDate><dc:creator>DataAnalyst011</dc:creator></item><item><title>RE: Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>if i understand correctly, the OP is looking to have the values returned in the query used as Y-axis values for a bar graph. the query should return two values, (23, 100) and the graph should have 2 points on the x axis with these y axis values, but it's not working.</description><pubDate>Wed, 05 Sep 2012 10:27:11 GMT</pubDate><dc:creator>Andy Gerard</dc:creator></item><item><title>RE: Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>[quote][b]Andy Gerard (9/5/2012)[/b][hr]right, right... sorry for the bad info.[/quote]No worries.Now to try to help the OP...I don't understand what the issue is.</description><pubDate>Wed, 05 Sep 2012 10:07:49 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>right, right... sorry for the bad info.</description><pubDate>Wed, 05 Sep 2012 09:45:10 GMT</pubDate><dc:creator>Andy Gerard</dc:creator></item><item><title>RE: Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>[quote][b]Andy Gerard (9/5/2012)[/b][hr]does this script work in a query window? i could be wrong but i think you might have to put an "as Size" after the cast statement.[/quote]No, the two select statements are in a union. The first select statement will control the column names. If this was not the behavior then it would allow for the same column to have two different names in the same query.Here is proof:[code]select 1 as MyColName union allselect 2 as SomeOther[/code]</description><pubDate>Wed, 05 Sep 2012 09:24:42 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>does this script work in a query window? i could be wrong but i think you might have to put an "as Size" after the cast statement.</description><pubDate>Wed, 05 Sep 2012 08:33:49 GMT</pubDate><dc:creator>Andy Gerard</dc:creator></item><item><title>Databar with single value</title><link>http://www.sqlservercentral.com/Forums/Topic1354218-150-1.aspx</link><description>This is such a newbie question, but I haven't been able to figure it out. I have a databar that only appears on a single row. I will have to hardcode in my select statement what to evaluate it against. I thought I could do something like this:SELECT value AS sizeFROM tableWHERE condition = 'yes'UNION ALLSELECT CAST('100' AS Numeric)The results would be:[u]Size[/u]23100But when I put the column "size" as my value, nothing happens - the whole bar is shaded. Would someone mind pointing me in the right direction?</description><pubDate>Tue, 04 Sep 2012 15:29:51 GMT</pubDate><dc:creator>DataAnalyst011</dc:creator></item></channel></rss>