SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 How to determine column in Tablix expression?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

malachi151
Posting Yak Master

143 Posts

Posted - 11/20/2012 :  16:36:40  Show Profile  Visit malachi151's Homepage  Reply with Quote
My problem is that I have some condition formatting that is itself condition depending on the column.

I used something like the following expression:


=IIF(Fields!X.Value="ABC", Red, Green)


The problem is that in a Matrix when the value for a cell is NULL, then the value for the field that I'm checking is also NULL, so it can't be checked.

Is there a way do condition formatting based directly on a check of the ordinality of the column, i.e. something like IIF(Columns.Index = 0, X, Y), etc.?

--------------------------------------------------
My blog: http://practicaltsql.net/
Twitter: @RGPSoftware

malachi151
Posting Yak Master

143 Posts

Posted - 11/26/2012 :  09:22:57  Show Profile  Visit malachi151's Homepage  Reply with Quote
I ended up solving this a different way. I created two different column groups and put filters on them, then put different conditional formatting on the two columns.

--------------------------------------------------
My blog: http://practicaltsql.net/
Twitter: @RGPSoftware
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000