Solved

Conditional expresssion in Matrix detail cell

Posted on 2011-02-22
2
555 Views
Last Modified: 2012-05-11
I am using SSRS 2008 and currently working on a matrix report with one column group and one row group. The column group has Month Names and the row group has product names. The detail cells in the matrix show the sales amounts for the products by months. I have a need that for the first month column in the matrix, the sales amounts need to have a different expression than the rest of the months. For ex: lets say, for the first month column, the sales amount needs tobe multiplied by 0.8 and for the subsequent months, show the sales amount as is from the dataset. How can I write an expresssion in the detail cell to conditionally identify the first column value in the matrix vs the rest? Need a sample expression that I can look at. (The above is an example scenario and so I am not looking at solutions to do this in the sql stored procs)
0
Comment
Question by:kamur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 34954032
Try something like this....

=IIF(First(Fields!MyData.Value=True,(CDbl(Fields!MyData.Value) * .8), Fields!MyData.Value)
0
 

Author Closing Comment

by:kamur
ID: 34955283
Thank You planocz, it really helps. I have opened another question along the same lines for SSRS Matrix report.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question