Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Grouping with colours
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

United Kingdom
555 Posts

Posted - 03/06/2013 :  06:56:04  Show Profile  Reply with Quote

I have a table with changing colours that tell me what stage a ticket is at, for example RED = today, GREEN = tomorrow and BLUE = before today.

The date returned is good which I've grouped together the colours based on sort: Agreed_Solved_Date_Time, Status, I want the Status field to always Z-A so they are grouped together but I also still want to keep the colours together, obviously if I remove the Agreed_Solved_Date_Time from the sort we get the Status at the top but the colour grouping is then thrown all over.

There is a colour function populating the actual colours which is:

Public Function fnGetConditionalColor(pDate as datetime) AS String

Dim d AS integer
Dim c as string
d= DateDiff("d", pDate.Date, Now.Date)
ELSE IF d =0 and d <=1 THEN
Return c
End Function

Can this be achieved using this method, how can I first call the function to use in the report for the first sort followed by the Status field.

Screenshot of current report.

As you can see I want the WIP at the top of the colours but still maintaining the colours together?

Thanks in advance.

Learning and development is the driving force in the universe...!
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000