Spark border backgroundColor

I am using a border to display a picture on the left side of the border object
and want the background color of the border to display white in the area where the picture is not displayed (right side - noScale).
The color will set when there is no image specified, but when you include a background image it always displays tranparent in the area where the photo is not displayed.
Is this a bug or am I going at this the wrong way?
Thanks
Dan Pride

I am using a border to display a picture on the left side of the border object
and want the background color of the border to display white in the area where the picture is not displayed (right side - noScale).
The color will set when there is no image specified, but when you include a background image it always displays tranparent in the area where the photo is not displayed.
Is this a bug or am I going at this the wrong way?
Thanks
Dan Pride

Similar Messages

  • Flex Spark Border Only On 3 Sides of Button

    I have a skin class whose host component is a Toggle Button. I need to be able to add a border around it but only on the top, left, and right sides, As I understand it you have to the: <s:Line> component. So I added:
              <s:Line   left="0" top="0" right="0">
                        <s:stroke>
                                  <s:LinearGradientStroke  rotation="180" weight="2" caps="square">
                                            <s:GradientEntry color="0xffffff"
                                                                                     alpha="0"
                                                                                     alpha.selectedStates="1"/>
                                            <s:GradientEntry color="0xffffff"
                                                                                     alpha="0"
                                                                                     alpha.selectedStates="1" />
                                  </s:LinearGradientStroke>
                        </s:stroke>
              </s:Line>
    This worked for the top line , But I can't seem to get the left and right lines. I tried: this for the left side line, but it did not work (no line showed up):
              <s:Line   left="0" top="0">
                        <s:stroke>
                                  <s:LinearGradientStroke  rotation="90" weight="2" caps="square">
                                            <s:GradientEntry color="0xffffff"
                                                                                     alpha="0"
                                                                                     alpha.selectedStates="1"/>
                                            <s:GradientEntry color="0xffffff"
                                                                                     alpha="0"
                                                                                     alpha.selectedStates="1" />
                                  </s:LinearGradientStroke>
                        </s:stroke>
              </s:Line>
    How can I achieve the 3 Lines around the button?

    Ok I was able to add top and left side lines but I can't fifure out the right side line. What amn I doing wrong?
    ***TOP SIDE***
              <s:Line   left="0" top="0"  right="0">
      <s:stroke>
                                  <s:LinearGradientStroke  rotation="180" weight="1" caps="round" >
      <s:GradientEntry color="0x70706F"
                                                                                     alpha="1"
                                                                                     alpha.selectedStates="0"/>
      <s:GradientEntry color="0x70706F"
                                                                                     alpha="1"
                                                                                     alpha.selectedStates="0" />
      </s:LinearGradientStroke>
      </s:stroke>
      </s:Line>
    ***LEFT***
              <s:Line   left="0" top="0"  bottom="0">
      <s:stroke>
                                  <s:LinearGradientStroke  rotation="90" weight="1" caps="round" >
      <s:GradientEntry color="0x70706F"
                                                                                     alpha="0"
                                                                                     alpha.selectedStates="1"/>
      <s:GradientEntry color="0x70706F"
                                                                                     alpha="0"
                                                                                     alpha.selectedStates="1" />
      </s:LinearGradientStroke>
      </s:stroke>
      </s:Line>
    ***RIGHT - DOESN"T WORK:***
              <s:Line  right="0"  top="0" bottom="0">
      <s:stroke>
                                  <s:LinearGradientStroke  rotation="90" weight="1" caps="round" >
      <s:GradientEntry color="0x70706F"
                                                                                     alpha="1"
                                                                                     alpha.selectedStates="1"/>
      <s:GradientEntry color="0x70706F"
                                                                                     alpha="1"
                                                                                     alpha.selectedStates="1" />
      </s:LinearGradientStroke>
      </s:stroke>
      </s:Line>

  • Is there a border component in the latest sdk build??

    hey guys... im trying to use the spark border component and its giving me an error in the latest sdk... the one im using right now is 4.0.0.13210
    the code i have is
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
          <s:Group ..... >
             <s:Border ...... />
          </s:Group>
    </s:Group>

    The Border component was renamed to BorderContainer.

  • SSRS IIF Returning #ERROR

    I have an expression in my SSRS report that calculates a field Total across multiple groups:
    =IIf(SUM(Fields!sales_Dollars.Value) > 0 ,(SUM(Fields!Total_Defective__.Value)/IIF(SUM(Fields!sales_Dollars.Value) <= 0, 1, SUM(Fields!sales_Dollars.Value))),0)
    I had to alter it by adding groups within the statement:
    =SUM(IIf(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") > 0 ,(SUM(Fields!Total_Defective__.Value,"Item_Process_Group")/IIF(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") <= 0, 1, SUM(Fields!sales_Dollars.Value,"Item_Process_Group"))),0))
    The problem is that there is a 0 in the denominator of one of the rows in the calc that is not in the group specified in the clause. This causes an #error. (at least I believe this is the cause)
    is there a way to slip in a check for zero in **Fields!sales_Dollars.Value** with no group? sort of like how it does it in the first code example.
    I need the group names in the bottom portion to pull the correct values.

    Hi,
    I have tested with your sample data, its working fine for me with your expression as shown in the below screen.
    you can see my sample RDL.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Process</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Total Defective </Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>sales Dollars</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox5">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>COQ</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox5</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Process">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Process.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Process</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Total_Defective__">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Total_Defective__.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Total_Defective__</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="sales_Dollars">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!sales_Dollars.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>sales_Dollars</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox6">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=iif( Fields!Total_Defective__.Value&gt;0, Fields!Total_Defective__.Value/Fields!sales_Dollars.Value,0)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <Format>0.00;(0.00)</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox6</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox26">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox26</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Total_Defective__1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!Total_Defective__.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Total_Defective__1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="sales_Dollars1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!sales_Dollars.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>sales_Dollars1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox29">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=SUM(IIf(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") &gt; 0 ,(SUM(Fields!Total_Defective__.Value,"Item_Process_Group")/IIF(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") &lt;= 0, 1, SUM(Fields!sales_Dollars.Value,"Item_Process_Group"))),0))</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox29</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="Item_Process_Group">
    <GroupExpressions>
    <GroupExpression>=Fields!Process.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Process.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixMembers>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <KeepWithGroup>Before</KeepWithGroup>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.37in</Top>
    <Height>0.68in</Height>
    <Width>4in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>IIF</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>16pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>1.3in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>0404c681-a734-438b-8708-447809487513</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select *
    from sales</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="Process">
    <DataField>Process</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Total_Defective__">
    <DataField>Total_Defective__</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    <Field Name="sales_Dollars">
    <DataField>sales_Dollars</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>4435f425-143e-441c-b41a-7c5407db2b37</rd:ReportID>
    </Report>
    Run the RDL by create sample table and data as shown below:-
    create table Sales(Process Varchar(50),Total_Defective__  numeric (10,2),sales_Dollars numeric(10,2))
    insert into Sales values
    ('abc',0,2423.74)
    ,('abc',0,1184.64)
    ,('abc',15.02,569.72)
    ,('abc',26.79,0)
    ,('abc',4.05,22894.08)
    ,('abc',0,3333.63)
    ,('abc',18.42,372.60)
    ,('abc',0,465.35)
    ,('abc',0,1521.16)
    ,('abc',512.44,99142.67)
    ,('abc',6010.07,245804.00)
    ,('abc',81.79,9607.20)
    ,('abc',00.00,34597.74)
    ,('abc',00.00,27592.20)
    ,('abc',2187.23,40543.52)
    ,('abc',251.71,58263.60)
    ,('abc',44.32,45551.34)
    You edit my RDL and try to stimulate your issue and send it to me.. my RDL is in 2012.
    Thanks
    Prasad

  • How To hide a column on a Matrix using a parameter that is set-up as a multi-select

    Hi,
    I have a multi-select parameter (has 4 choices ie. A,B,C,D).  In the matrix the parent Column group is a date and the child group is based on the Multi-select parameter field.  When all choices are selected the report returns a column per
    date and then within that date column 4 sub columns as expected.....This all works. 
    Challenge ... I added another column (Col5).  For Col5 I only want it to show if value B has been selected from the multi choice
    Another way of saying it....  How do I get a column to appear (Visibility) if a specific  Value has been select in a multi-choice parameter
    Tx
    Andrew
    Andrew Payze

    Hi,
    here is the query
    SELECT        ProjectNumber, ProjectDescription, WBS, TaskNumber, TaskName, TaskDescription, TaskManager, Results, ResourceExpenditure, CostSet, Currency,
                             ReportingDate, Value, YEAR(ReportingDate) AS Year, { fn MONTHNAME(ReportingDate) } AS Month, ActualValue, PriorEAC
    FROM            vwForecastAccuracy
    WHERE        (CostSet IN (@CostType)) AND (YEAR(ReportingDate) = @Year) AND (Results = 'Cost')
    below is the Code, not sure how to attach RDL
    Thanks
    Andrew
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox8">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox8</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Value">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!Value.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <Format>'$'#,0;('$'#,0)</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Value</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    <rd:FormatSymbolCulture>en-US</rd:FormatSymbolCulture>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=RunningValue(Fields!ActualValue.Value,sum, "matrix1_ProjectNumber")</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_ReportingDate">
    <GroupExpressions>
    <GroupExpression>=Fields!ReportingDate.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!ReportingDate.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="Month">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Month.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Format>MM/dd/yyyy</Format>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Month</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <Group Name="CostSet">
    <GroupExpressions>
    <GroupExpression>=Fields!CostSet.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!CostSet.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="CostSet1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!CostSet.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>CostSet1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_ProjectNumber">
    <GroupExpressions>
    <GroupExpression>=Fields!ProjectNumber.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!ProjectNumber.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="ProjectNumber">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!ProjectNumber.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>ProjectNumber</rd:DefaultName>
    <ActionInfo>
    <Actions>
    <Action>
    <Drillthrough>
    <ReportName>BUDVAR 11 Budget Detail By WBS</ReportName>
    <Parameters>
    <Parameter Name="ProjectNumber">
    <Value>=Fields!ProjectNumber.Value</Value>
    </Parameter>
    <Parameter Name="Year">
    <Value>=Parameters!Year.Value</Value>
    </Parameter>
    <Parameter Name="CostSet">
    <Value>=Parameters!CostType.Value</Value>
    </Parameter>
    </Parameters>
    </Drillthrough>
    </Action>
    </Actions>
    </ActionInfo>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>BudgetData</DataSetName>
    <Height>0.67in</Height>
    <Width>3in</Width>
    <Style />
    </Tablix>
    </ReportItems>
    <Height>0.84708in</Height>
    <Style />
    </Body>
    <Width>3.85417in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="BIDatabase">
    <DataSourceReference>VSPDEV011</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>f3bf5788-4fb5-4822-89d9-2f4518f5488d</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="BudgetData">
    <Query>
    <DataSourceName>BIDatabase</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@CostType">
    <Value>=Parameters!CostType.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@Year">
    <Value>=Parameters!Year.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>SELECT ProjectNumber, ProjectDescription, WBS, TaskNumber, TaskName, TaskDescription, TaskManager, Results, ResourceExpenditure, CostSet, Currency,
    ReportingDate, Value, YEAR(ReportingDate) AS Year, { fn MONTHNAME(ReportingDate) } AS Month, ActualValue, PriorEAC
    FROM vwForecastAccuracy
    WHERE (CostSet IN (@CostType)) AND (YEAR(ReportingDate) = @Year) AND (Results = 'Cost')</CommandText>
    </Query>
    <Fields>
    <Field Name="ProjectNumber">
    <DataField>ProjectNumber</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="ProjectDescription">
    <DataField>ProjectDescription</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="WBS">
    <DataField>WBS</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="TaskNumber">
    <DataField>TaskNumber</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="TaskName">
    <DataField>TaskName</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="TaskDescription">
    <DataField>TaskDescription</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="TaskManager">
    <DataField>TaskManager</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Results">
    <DataField>Results</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="ResourceExpenditure">
    <DataField>ResourceExpenditure</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="CostSet">
    <DataField>CostSet</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Currency">
    <DataField>Currency</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="ReportingDate">
    <DataField>ReportingDate</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    <Field Name="Value">
    <DataField>Value</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    <Field Name="Year">
    <DataField>Year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="Month">
    <DataField>Month</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="ActualValue">
    <DataField>ActualValue</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    <Field Name="PriorEAC">
    <DataField>PriorEAC</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="ProjectLookup">
    <Query>
    <DataSourceName>BIDatabase</DataSourceName>
    <CommandText>SELECT DISTINCT ProjectNumber, ProjectDescription, ProjectNumber AS Expr1
    FROM vwForecastAccuracy</CommandText>
    </Query>
    <Fields>
    <Field Name="ProjectNumber">
    <DataField>ProjectNumber</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="ProjectDescription">
    <DataField>ProjectDescription</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Expr1">
    <DataField>Expr1</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="CostTypeLookup">
    <Query>
    <DataSourceName>BIDatabase</DataSourceName>
    <CommandText>SELECT DISTINCT CostSet, CostSet AS CostSetDesc
    FROM vwForecastAccuracy
    UNION
    SELECT NULL AS Expr1, 'All' AS CostSetDesc
    ORDER BY CostSet</CommandText>
    </Query>
    <Fields>
    <Field Name="CostSet">
    <DataField>CostSet</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="CostSetDesc">
    <DataField>CostSetDesc</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="YearLookup">
    <Query>
    <DataSourceName>BIDatabase</DataSourceName>
    <CommandText>SELECT DISTINCT YEAR(ReportingDate) AS Year
    FROM vwForecastAccuracy
    ORDER BY Year</CommandText>
    </Query>
    <Fields>
    <Field Name="Year">
    <DataField>Year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="Year">
    <DataType>String</DataType>
    <Prompt>Year</Prompt>
    <ValidValues>
    <DataSetReference>
    <DataSetName>YearLookup</DataSetName>
    <ValueField>Year</ValueField>
    <LabelField>Year</LabelField>
    </DataSetReference>
    </ValidValues>
    </ReportParameter>
    <ReportParameter Name="CostType">
    <DataType>String</DataType>
    <Prompt>Cost Set</Prompt>
    <ValidValues>
    <DataSetReference>
    <DataSetName>CostTypeLookup</DataSetName>
    <ValueField>CostSet</ValueField>
    <LabelField>CostSetDesc</LabelField>
    </DataSetReference>
    </ValidValues>
    <MultiValue>true</MultiValue>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>19da6d82-a69b-4bb7-a634-2fee3191c5d8</rd:ReportID>
    </Report>
    Andrew Payze

  • Custom report - Can't customize font / table width etc

    So i'm authoring my first report - that works fine; however I can't seem to figure out how to customize the font / table width etc. I'm creating an RDL file from Report Server Project Wizard in Visual Studio and in there i'm changing font sizes and table
    widths and I can see its changing in the RDL file's XML. I then plug the RDL file into my managment pack and import it. I run the report and the results always have this huge font and the table widths don't change. Anyone have any idea what i'm missing or
    why that would be happening? heres the RDL file for reference:
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Report1</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.36in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>2.75in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>3.58333in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Raised Date Time</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Alert Name</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Alert Description</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="RaisedDateTime">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!RaisedDateTime.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>RaisedDateTime</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="AlertName">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!AlertName.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>AlertName</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="AlertDescription">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!AlertDescription.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>AlertDescription</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.36in</Top>
    <Height>0.43in</Height>
    <Width>7.33333in</Width>
    <ZIndex>1</ZIndex>
    <Style />
    </Tablix>
    </ReportItems>
    <Height>0.79in</Height>
    <Style />
    </Body>
    <Width>8.1875in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSources>
    <DataSource Name="DataWarehouseMain">
    <DataSourceReference>Data Warehouse Main</DataSourceReference>
    <rd:DataSourceID>e4235c51-407f-4065-8519-a1e57374bc45</rd:DataSourceID>
    </DataSource>
    </DataSources>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataWarehouseMain</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@AlertName">
    <Value>=Parameters!AlertName.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@StartDate">
    <Value>=Parameters!StartDate.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@EndDate">
    <Value>=Parameters!EndDate.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@ObjectName">
    <Value>=Parameters!ObjectName.Value</Value>
    <rd:UserDefined>true</rd:UserDefined>
    </QueryParameter>
    </QueryParameters>
    <CommandText>SELECT dbo.vManagedEntity.FullName,
    dbo.vManagedEntity.TopLevelHostManagedEntityRowId,
    dbo.vManagedEntity.ManagedEntityRowId,
    Alert.vAlert.ManagedEntityRowId,
    Alert.vAlert.AlertName,
    Alert.vAlert.AlertDescription,
    Alert.vAlert.RaisedDateTime
    FROM dbo.vManagedEntity
    INNER JOIN Alert.vAlert
    ON dbo.vManagedEntity.ManagedEntityRowId = Alert.vAlert.ManagedEntityRowId
    WHERE dbo.vManagedEntity.FullName LIKE '%' + @ObjectName + '%'
    AND Alert.vAlert.AlertName LIKE '%' + @AlertName + '%'
    AND Alert.vAlert.RaisedDateTime &gt;= @StartDate
    AND Alert.vAlert.RaisedDateTime &lt;= @EndDate
    ORDER BY Alert.vAlert.RaisedDateTime DESC</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="AlertName">
    <DataField>AlertName</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="AlertDescription">
    <DataField>AlertDescription</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="RaisedDateTime">
    <DataField>RaisedDateTime</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    <Field Name="ObjectName">
    <DataField>ObjectName</DataField>
    <rd:UserDefined>true</rd:UserDefined>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="AlertName">
    <DataType>String</DataType>
    <Prompt>Alert Name</Prompt>
    </ReportParameter>
    <ReportParameter Name="StartDate">
    <DataType>DateTime</DataType>
    <Prompt>Start Date</Prompt>
    </ReportParameter>
    <ReportParameter Name="EndDate">
    <DataType>DateTime</DataType>
    <Prompt>End Date</Prompt>
    </ReportParameter>
    <ReportParameter Name="ObjectName">
    <DataType>String</DataType>
    <Prompt>Object Name</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>4250ddf1-3c87-47b1-b8c2-314aad86ad86</rd:ReportID>
    </Report>
    Any suggestions would be greatly appreciated. Thanks!

    I did some digging and found a link that might help you/have an answer.
    http://stackoverflow.com/questions/14850503/change-default-font-ssrs-visual-studio
    https://connect.microsoft.com/SQLServer/feedback/details/574003/modify-the-default-font-family-for-sql-server-business-intelligence-development-studio-while-creating-a-report#
    If you click on work around someone posted that they were able to modify the default font in visual studio.
    "If I am not mistaken, you can update your Report.rdl template file in visual studio
    to use the default font you wish to use.
    navigate to this location (where x is your visual studio version):
    C:-\Program Files\Microsoft Visual Studio x\Common7\ide\PrivateAssemblies\ProjectItems\ReportProject
    copy report.rdl to an already created report project. 
    Add the report to your report project
    Update the default font where applicable.
    Copy the updated report.rdl back to the location above and that is it.
    The next time you open your project, you will be using the update rdl file as your
    template. 
    You can do this as many times as you want.
    Use this link as a reference
    http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx
    Cheers,
    Martin
    Blog:
    http://sustaslog.wordpress.com 
    LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Dynamically assigning aggregation type in a matrix table

    I have a matrix table that will produce multiple summary columns.  These columns should not all use Sum in the Totals row at the bottom.  Some will any of these to be determined at runtime: Sum, Avg, Count, Min, Max.  I have a column in the
    underlying dataset that will tell me which aggregation type to use and now I need some logic in the summary cell to use the correct aggregation type.  I tried different variation of this:
    =IIF(Fields!AgType = "Sum",   Sum(Fields!VI_Impact.Value), … next IIF statement….
    And here’s the full line
    =IIF(Fields!AgType = "Sum",   Sum(Fields!VI_Impact.Value), IIF(Fields!AgType = "Avg",   Avg(Fields!VI_Impact.Value), IIF(Fields!AgType = "Cnt",   Count(Fields!VI_Impact.Value),  IIF(Fields!AgType
    = "Min",   Min(Fields!VI_Impact.Value), IIF(Fields!AgType = "Max",   Max(Fields!VI_Impact.Value), 0)))))
    I also replaced the zero at the end with another sum statement as a default if nothing else is used.
    Just to keep it real simple for proof of concept, I used:
    =IIF(Fields!AgType = "Sum",   Sum(Fields!VI_Impact.Value),  Sum(Fields!VI_Impact.Value))
    But the report gets the error:
    The Value expression for the textrun ‘VI_Impact.Paragraphs[0].TextRuns[0]’ contains an error: [BC30311] Value of type ‘Microsoft.ReportingServies.ReportProcessing.ReportObjectModel.field’ Cannot be converted to ‘String’
    Any idea how I can make this work?

    Thanks Jason.  I've put an sql script below that will create a test table and populate it with test data.  I also attached an rdl file so after you run the script and load the report, all you need to do is update the report's data source
    to the correct database and you will see exactly what I'm trying to do. 
    This report table creates a maxtrix with 4 SUM columns to the right.  as you will see in the data, the column headers are named by "VA", and column "AgType" shows how the column should be aggregated.  Once you run the report
    and look at the data it should be easy to understand.
    Thanks for any help you can offer.
    DESCRIPTION: Schema Synchronization Script for Object(s) \r\n
    tables:
    [dbo].[zzzRptValueImpactListing]
    AUTHOR: [Insert Author Name]
    DATE: 11/19/2014 5:17:57 PM
    LEGAL: 2013[Insert Company Name]
    SET NOEXEC OFF
    SET ANSI_WARNINGS ON
    SET XACT_ABORT ON
    SET IMPLICIT_TRANSACTIONS OFF
    SET ARITHABORT ON
    SET NOCOUNT ON
    SET QUOTED_IDENTIFIER ON
    SET NUMERIC_ROUNDABORT OFF
    SET CONCAT_NULL_YIELDS_NULL ON
    SET ANSI_NULLS ON
    SET ANSI_PADDING ON
    GO
    USE [VME_KP]
    GO
    BEGIN TRAN
    GO
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    GO
    IF @@ERROR<>0 OR @@TRANCOUNT=0 BEGIN IF @@TRANCOUNT>0 ROLLBACK SET NOEXEC ON END
    GO
    -- Create Table [dbo].[zzzRptValueImpactListing]
    Print 'Create Table [dbo].[zzzRptValueImpactListing]'
    GO
    CREATE TABLE [dbo].[zzzRptValueImpactListing] (
    [Id_Number] [int] NULL,
    [Id_Name] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [VA] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [VI_Impact] [decimal](18, 3) NULL,
    [Id_Assignees] [nvarchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [AgType] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [Pj_Id] [uniqueidentifier] NOT NULL
    GO
    IF @@ERROR<>0 OR @@TRANCOUNT=0 BEGIN IF @@TRANCOUNT>0 ROLLBACK SET NOEXEC ON END
    GO
    ALTER TABLE [dbo].[zzzRptValueImpactListing] SET (LOCK_ESCALATION = TABLE)
    GO
    IF @@ERROR<>0 OR @@TRANCOUNT=0 BEGIN IF @@TRANCOUNT>0 ROLLBACK SET NOEXEC ON END
    GO
    IF @@TRANCOUNT>0
    COMMIT
    SET NOEXEC OFF
    DESCRIPTION: Synchronization Script for Object(s)
    Tables:
    [dbo].[zzzRptValueImpactListing]
    AUTHOR: [Insert author name]
    DATE: 11/19/2014 5:50:25 PM
    LEGAL: 2014 [Insert company name]
    SET NOEXEC OFF
    SET ANSI_WARNINGS ON
    SET XACT_ABORT ON
    SET IMPLICIT_TRANSACTIONS OFF
    SET ARITHABORT ON
    SET NOCOUNT ON
    SET QUOTED_IDENTIFIER ON
    SET NUMERIC_ROUNDABORT OFF
    SET CONCAT_NULL_YIELDS_NULL ON
    SET ANSI_NULLS ON
    SET ANSI_PADDING ON
    GO
    BEGIN TRAN
    -- =======================================================
    -- Synchronization Script for Table: [dbo].[zzzRptValueImpactListing]
    -- =======================================================
    Print 'Synchronization Script for Table: [dbo].[zzzRptValueImpactListing]'
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (5, N'Change from double tape to liquid glue', N'Prod Cost', CONVERT([decimal](18, 3),-0.050), N'Philipp Bart
    Steve Stewart', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (7, N'Position of NTC out of contact area', N'Complexity', CONVERT([decimal](18, 3),-170.000), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (7, N'Position of NTC out of contact area', N'Mrk Conf', CONVERT([decimal](18, 3),8.000), NULL, N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (8, N'Change type of patches', N'Mrk Conf', CONVERT([decimal](18, 3),7.000), NULL, N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (9, N'Reduce winding turns for harness', N'Mrk Conf', CONVERT([decimal](18, 3),8.000), NULL, N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (9, N'Reduce winding turns for harness', N'Relblty', CONVERT([decimal](18, 3),1.500), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (11, N'Use fix sizes of carrier material rolls', N'Prod Cost', CONVERT([decimal](18, 3),-0.310), N'Marc Pauwels', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (11, N'Use fix sizes of carrier material rolls', N'Prod Cost', CONVERT([decimal](18, 3),-0.310), N'Marc Pauwels', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (12, N'Cold pressing process for laying or needle technology', N'Prod Cost', CONVERT([decimal](18, 3),0.080), N'George Padvorac', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (12, N'Cold pressing process for laying or needle technology', N'Relblty', CONVERT([decimal](18, 3),0.500), N'George Padvorac', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (13, N'Liquid cold gluing instead of hot processing', N'Complexity', CONVERT([decimal](18, 3),-100.000), N'Philipp Blattert', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (13, N'Liquid cold gluing instead of hot processing', N'Mrk Conf', CONVERT([decimal](18, 3),8.000), N'Philipp Blattert', N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (14, N'Confidential', N'Prod Cost', CONVERT([decimal](18, 3),-0.020), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (16, N'Decrease positioning tolerances to reduce distance between parts', N'Complexity', CONVERT([decimal](18, 3),-40.000), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (16, N'Decrease positioning tolerances to reduce distance between parts', N'Prod Cost', CONVERT([decimal](18, 3),-0.060), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (17, N'Control and reduce amount of thermoactive glue', N'Prod Cost', CONVERT([decimal](18, 3),-0.030), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (18, N'Pull off force harness: reduce spec', N'Complexity', CONVERT([decimal](18, 3),-50.000), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (18, N'Pull off force harness: reduce spec', N'Complexity', CONVERT([decimal](18, 3),-50.000), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (18, N'Pull off force harness: reduce spec', N'Mrk Conf', CONVERT([decimal](18, 3),6.000), NULL, N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (18, N'Pull off force harness: reduce spec', N'Mrk Conf', CONVERT([decimal](18, 3),6.000), NULL, N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (18, N'Pull off force harness: reduce spec', N'Prod Cost', CONVERT([decimal](18, 3),-0.040), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (18, N'Pull off force harness: reduce spec', N'Prod Cost', CONVERT([decimal](18, 3),-0.040), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (23, N'Simplify and stabilize contact process', N'Mrk Conf', CONVERT([decimal](18, 3),6.000), NULL, N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (23, N'Simplify and stabilize contact process', N'Prod Cost', CONVERT([decimal](18, 3),-0.320), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (23, N'Simplify and stabilize contact process', N'Relblty', CONVERT([decimal](18, 3),1.500), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (24, N'Decrease positioning tolerances to reduce distance between parts', N'Prod Cost', CONVERT([decimal](18, 3),-0.210), N'Mark Powel
    Philipp Bart', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (25, N'Separate extension of carrier material, than assembly by gluing', N'Complexity', CONVERT([decimal](18, 3),-20.000), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (25, N'Separate extension of carrier material, than assembly by gluing', N'Prod Cost', CONVERT([decimal](18, 3),-0.230), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (26, N'Use higher emission foam/fleece where possible', N'Mrk Conf', CONVERT([decimal](18, 3),7.000), N'Craig Squires
    Stacy Johnson', N'Avg', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (27, N'Reduce material variance fleece: width, composites, glue or not,', N'Complexity', CONVERT([decimal](18, 3),-5.000), N'Stacy Johnson', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (28, N'Confidential', N'Relblty', CONVERT([decimal](18, 3),4.000), NULL, N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (29, N'Reduce material variance tape: width, composites', N'Complexity', CONVERT([decimal](18, 3),-3.000), N'Steve Stewart', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (29, N'Reduce material variance tape: width, composites', N'Prod Cost', CONVERT([decimal](18, 3),-0.350), N'Steve Stewart', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    INSERT INTO [dbo].[zzzRptValueImpactListing] ([Id_Number], [Id_Name], [VA], [VI_Impact], [Id_Assignees], [AgType], [Pj_Id]) VALUES (29, N'Reduce material variance tape: width, composites', N'Relblty', CONVERT([decimal](18, 3),3.000), N'Steve Stewart', N'Sum', '47c9efba-f25e-4ffe-be66-5c5e7f3a3e18')
    GO
    -- TRANSACTION HANDLING
    IF @@ERROR<>0 OR @@TRANCOUNT=0 BEGIN IF @@TRANCOUNT>0 ROLLBACK SET NOEXEC ON END
    GO
    IF @@TRANCOUNT>0
    COMMIT
    SET NOEXEC OFF
    GO
    Here's the code for the rdl file:
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>#</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    <Color>#054974</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <ToolTip>Idea Number</ToolTip>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#fafafa</BackgroundColor>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox13">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Idea</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    <Color>#054974</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Left</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox13</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#fafafa</BackgroundColor>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Assignees</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    <Color>#054974</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Left</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#fafafa</BackgroundColor>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>0.95in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.3in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!VI_Impact.Value)</Value>
    <Style>
    <Format>#,###.###</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <TopBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </TopBorder>
    <BottomBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </BottomBorder>
    <LeftBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </LeftBorder>
    <RightBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </RightBorder>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>4pt</PaddingRight>
    <PaddingTop>3pt</PaddingTop>
    <PaddingBottom>3pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="VI_Impact">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!VI_Impact.Value)</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    <Format>#,###.###</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>VI_Impact</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <TopBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </TopBorder>
    <BottomBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </BottomBorder>
    <LeftBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </LeftBorder>
    <RightBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </RightBorder>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>4pt</PaddingRight>
    <PaddingTop>3pt</PaddingTop>
    <PaddingBottom>3pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_VA">
    <GroupExpressions>
    <GroupExpression>=Fields!VA.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!VA.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.3in</Size>
    <CellContents>
    <Textbox Name="VA">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!VA.Value</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    <Color>#054974</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>VA</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>WhiteSmoke</BackgroundColor>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>4pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="Id_Pj_Id">
    <GroupExpressions>
    <GroupExpression>=Fields!Pj_Id.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Id_Number.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_Id_Number">
    <GroupExpressions>
    <GroupExpression>=Fields!Id_Number.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Id_Number.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.4in</Size>
    <CellContents>
    <Textbox Name="Id_Number">
    <CanGrow>true</CanGrow>
    <CanShrink>true</CanShrink>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Id_Number.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Id_Number</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BottomBorder>
    <Color>LightGrey</Color>
    </BottomBorder>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_Id_Name">
    <GroupExpressions>
    <GroupExpression>=Fields!Id_Name.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Id_Name.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>4.81979in</Size>
    <CellContents>
    <Textbox Name="Id_Name">
    <CanGrow>true</CanGrow>
    <CanShrink>true</CanShrink>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Id_Name.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Id_Name</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <TopBorder>
    <Style>Solid</Style>
    </TopBorder>
    <BottomBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </BottomBorder>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>3pt</PaddingTop>
    <PaddingBottom>3pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>1.33333in</Size>
    <CellContents>
    <Textbox Name="Id_Assignees">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Id_Assignees.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Id_Assignees</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <TopBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </TopBorder>
    <BottomBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </BottomBorder>
    <LeftBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </LeftBorder>
    <RightBorder>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </RightBorder>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>3pt</PaddingTop>
    <PaddingBottom>3pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    <DataElementOutput>Output</DataElementOutput>
    </TablixMember>
    <TablixMember>
    <TablixHeader>
    <Size>0.4in</Size>
    <CellContents>
    <Textbox Name="Textbox35">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style />
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox35</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>4.81979in</Size>
    <CellContents>
    <Textbox Name="Textbox36">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox36</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>4pt</PaddingRight>
    <PaddingTop>3pt</PaddingTop>
    <PaddingBottom>3pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>1.33333in</Size>
    <CellContents>
    <Textbox Name="Textbox6">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Totals</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox6</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>None</Style>
    </Border>
    <VerticalAlign>Middle</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>4pt</PaddingRight>
    <PaddingTop>3pt</PaddingTop>
    <PaddingBottom>3pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    <KeepWithGroup>Before</KeepWithGroup>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.30375in</Top>
    <Height>0.85in</Height>
    <Width>7.50312in</Width>
    <Style />
    </Tablix>
    </ReportItems>
    <Height>1.845in</Height>
    <Style />
    </Body>
    <Width>8.42925in</Width>
    <Page>
    <PageHeight>8.5in</PageHeight>
    <PageWidth>14in</PageWidth>
    <LeftMargin>0.25in</LeftMargin>
    <RightMargin>0.25in</RightMargin>
    <TopMargin>0.25in</TopMargin>
    <BottomMargin>0.25in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="VEMasterDataSource">
    <DataSourceReference>VEMasterDataSource</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>c76f7aa3-8f20-4495-a1bf-0b7a2ede98e3</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>VEMasterDataSource</DataSourceName>
    <CommandText>select * from zzzRptValueImpactListing</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="Id_Number">
    <DataField>Id_Number</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="Id_Name">
    <DataField>Id_Name</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="VA">
    <DataField>VA</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="VI_Impact">
    <DataField>VI_Impact</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    <Field Name="Id_Assignees">
    <DataField>Id_Assignees</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="AgType">
    <DataField>AgType</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Pj_Id">
    <DataField>Pj_Id</DataField>
    <rd:TypeName>System.Guid</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>86e382ea-6e9e-46b0-a5c1-7bf67abfdcf5</rd:ReportID>
    </Report>

  • Diagonal line on SSRS line chart

    Hi all,
    I'm struggling with a charting issue that I was hoping someone here might be able to help with - I've looked through various blogs without success. I need to insert a diagonal line running the full width of a line chart, representing the linearly increasing
    target value over a month. The actual data will then be a secondary series on the same vertical axis, showing progress against the target based on today's data.
    This report has several limitations that I should emphasise before someone says "Well, why can't you just generate the target data in the SQL query?". It's for Dynamics CRM Online, so the only type of data source and query allowed is FetchXML.
    I can't even use a simple SQL query that returns constant values, let alone an actual SQL DB query. It also doesn't seem to be possible to have any custom code in the report, which makes it even more frustrating. FetchXML is just not set up to do things like
    return constant values in a query, or return a dataset which is the set of days in the current month.
    What I do have is two datasets, one of which returns the actual data, which I've used as the first series in the table, and a second dataset that returns a single value that represents the target for the month. There's no way, as far as I'm aware, to cross-join
    that with a set of dates and then use a calculated field in the dataset to turn it into a linear series.
    I've set the min and max values of the X-axis to show me all dates, and my initial solution to the problem was to have a horizontal line at the target value, as shown below (red dotted line). However, I've been asked to change that to the solid red diagonal
    line as shown:
    Series 1 (Total order value) is the RunningValue of the daily order values, summed across the dates. 
    Series 1 data looks something like this:
    [Date] [Order Value]
    1 Mar 100
    3 Mar 20
    3 Mar 35
    24 Mar 400
    Series 2 data just has
    [Target Name] [Target Value]
    Sales Target 25000
    Does anyone have ideas on how I can do this? I'm happy to take any suggestions; the line doesn't have to be interactive or be an action, so it could even be rendered directly onto the chart, if that's possible. The only limitation is that it needs to be
    viewed on screen, and be printable. I'd prefer some sort of elegant approach that allows me to do it as two series on the same chart, but frankly at this point I'm beyond caring how it's done - so long as it works, it can be held together with chewing gum
    and string.

    Hi Anuruddha,
    When you want to see the diagonal line, you should divide the target value with number of values in x-axis,
    let say Month March  has 31 days, your target is 25000
    then 25000/31=806.4516129032258
    But to do dynamic you need to get the number of days in month
    =day(DateAdd("d",-1,DateAdd("M",1,cdate(cstr(Month(First(Fields!workday.Value, "DataSet3")) )+"/01/" + cstr(Year(First(Fields!workday.Value, "DataSet3")))))))
    Create another series like below shown:-
    a Above expression  :-
    = (Sum(Fields!target.Value, "DataSet2")/ (day(DateAdd("d",-1,DateAdd("M",1,cdate(cstr(Month(First(Fields!workday.Value, "DataSet3")) )+"/01/" + cstr(Year(First(Fields!workday.Value, "DataSet3")))))))))*Fields!id.Value
    Run the report:-
    Orange Line is yours previously, Red Line is what you want.
    I am doing calculation in series, so there is no problem for you as you can't write SQL query.
    Below is the RDL code , which will help you to check the expressions.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Sparkline</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Chart Name="Chart1">
    <ChartCategoryHierarchy>
    <ChartMembers>
    <ChartMember>
    <Group Name="Chart1_CategoryGroup">
    <GroupExpressions>
    <GroupExpression>=Fields!workday.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!workday.Value</Value>
    </SortExpression>
    </SortExpressions>
    <Label>=Fields!workday.Value</Label>
    </ChartMember>
    </ChartMembers>
    </ChartCategoryHierarchy>
    <ChartSeriesHierarchy>
    <ChartMembers>
    <ChartMember>
    <Label>value</Label>
    </ChartMember>
    <ChartMember>
    <Label>target</Label>
    </ChartMember>
    <ChartMember>
    <Label>id</Label>
    </ChartMember>
    </ChartMembers>
    </ChartSeriesHierarchy>
    <ChartData>
    <ChartSeriesCollection>
    <ChartSeries Name="value">
    <ChartDataPoints>
    <ChartDataPoint>
    <ChartDataPointValues>
    <Y>=RunningValue(Fields!value.Value,Sum,"DataSet3")</Y>
    </ChartDataPointValues>
    <ChartDataLabel>
    <Style />
    </ChartDataLabel>
    <Style />
    <ChartMarker>
    <Style />
    </ChartMarker>
    <DataElementOutput>Output</DataElementOutput>
    </ChartDataPoint>
    </ChartDataPoints>
    <Type>Line</Type>
    <Style />
    <ChartEmptyPoints>
    <Style />
    <ChartMarker>
    <Style />
    </ChartMarker>
    <ChartDataLabel>
    <Style />
    </ChartDataLabel>
    </ChartEmptyPoints>
    <ValueAxisName>Primary</ValueAxisName>
    <CategoryAxisName>Primary</CategoryAxisName>
    <ChartSmartLabel>
    <CalloutLineColor>Black</CalloutLineColor>
    <MinMovingDistance>0pt</MinMovingDistance>
    </ChartSmartLabel>
    </ChartSeries>
    <ChartSeries Name="IDDetails">
    <ChartDataPoints>
    <ChartDataPoint>
    <ChartDataPointValues>
    <Y>=Sum(Fields!target.Value, "DataSet2")</Y>
    </ChartDataPointValues>
    <ChartDataLabel>
    <Style />
    </ChartDataLabel>
    <Style />
    <ChartMarker>
    <Style />
    </ChartMarker>
    <DataElementOutput>Output</DataElementOutput>
    </ChartDataPoint>
    </ChartDataPoints>
    <Type>Line</Type>
    <Style />
    <ChartEmptyPoints>
    <Style />
    <ChartMarker>
    <Style />
    </ChartMarker>
    <ChartDataLabel>
    <Style />
    </ChartDataLabel>
    </ChartEmptyPoints>
    <ValueAxisName>Primary</ValueAxisName>
    <CategoryAxisName>Primary</CategoryAxisName>
    <ChartSmartLabel>
    <CalloutLineColor>Black</CalloutLineColor>
    <MinMovingDistance>0pt</MinMovingDistance>
    </ChartSmartLabel>
    </ChartSeries>
    <ChartSeries Name="Series">
    <ChartDataPoints>
    <ChartDataPoint>
    <ChartDataPointValues>
    <Y>= (Sum(Fields!target.Value, "DataSet2")/ (day(DateAdd("d",-1,DateAdd("M",1,cdate(cstr(Month(First(Fields!workday.Value, "DataSet3")) )+"/01/" + cstr(Year(First(Fields!workday.Value, "DataSet3")))))))))*Fields!id.Value</Y>
    </ChartDataPointValues>
    <ChartDataLabel>
    <Style />
    </ChartDataLabel>
    <Style />
    <ChartMarker>
    <Style />
    </ChartMarker>
    <DataElementOutput>Output</DataElementOutput>
    </ChartDataPoint>
    </ChartDataPoints>
    <Type>Line</Type>
    <Style />
    <ChartEmptyPoints>
    <Style />
    <ChartMarker>
    <Style />
    </ChartMarker>
    <ChartDataLabel>
    <Style />
    </ChartDataLabel>
    </ChartEmptyPoints>
    <ValueAxisName>Primary</ValueAxisName>
    <CategoryAxisName>Primary</CategoryAxisName>
    <ChartSmartLabel>
    <CalloutLineColor>Black</CalloutLineColor>
    <MinMovingDistance>0pt</MinMovingDistance>
    </ChartSmartLabel>
    </ChartSeries>
    </ChartSeriesCollection>
    </ChartData>
    <ChartAreas>
    <ChartArea Name="Default">
    <ChartCategoryAxes>
    <ChartAxis Name="Primary">
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    <ChartAxisTitle>
    <Caption>Axis Title</Caption>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </ChartAxisTitle>
    <ChartMajorGridLines>
    <Enabled>False</Enabled>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    </Border>
    </Style>
    </ChartMajorGridLines>
    <ChartMinorGridLines>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    <Style>Dotted</Style>
    </Border>
    </Style>
    </ChartMinorGridLines>
    <ChartMinorTickMarks>
    <Length>0.5</Length>
    </ChartMinorTickMarks>
    <CrossAt>NaN</CrossAt>
    <Minimum>NaN</Minimum>
    <Maximum>NaN</Maximum>
    <ChartAxisScaleBreak>
    <Style />
    </ChartAxisScaleBreak>
    </ChartAxis>
    <ChartAxis Name="Secondary">
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    <ChartAxisTitle>
    <Caption>Axis Title</Caption>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </ChartAxisTitle>
    <ChartMajorGridLines>
    <Enabled>False</Enabled>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    </Border>
    </Style>
    </ChartMajorGridLines>
    <ChartMinorGridLines>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    <Style>Dotted</Style>
    </Border>
    </Style>
    </ChartMinorGridLines>
    <ChartMinorTickMarks>
    <Length>0.5</Length>
    </ChartMinorTickMarks>
    <CrossAt>NaN</CrossAt>
    <Location>Opposite</Location>
    <Minimum>NaN</Minimum>
    <Maximum>NaN</Maximum>
    <ChartAxisScaleBreak>
    <Style />
    </ChartAxisScaleBreak>
    </ChartAxis>
    </ChartCategoryAxes>
    <ChartValueAxes>
    <ChartAxis Name="Primary">
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    <ChartAxisTitle>
    <Caption>Axis Title</Caption>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </ChartAxisTitle>
    <ChartMajorGridLines>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    </Border>
    </Style>
    </ChartMajorGridLines>
    <ChartMinorGridLines>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    <Style>Dotted</Style>
    </Border>
    </Style>
    </ChartMinorGridLines>
    <ChartMinorTickMarks>
    <Length>0.5</Length>
    </ChartMinorTickMarks>
    <CrossAt>NaN</CrossAt>
    <Minimum>NaN</Minimum>
    <Maximum>NaN</Maximum>
    <ChartAxisScaleBreak>
    <Style />
    </ChartAxisScaleBreak>
    </ChartAxis>
    <ChartAxis Name="Secondary">
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    <ChartAxisTitle>
    <Caption>Axis Title</Caption>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </ChartAxisTitle>
    <ChartMajorGridLines>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    </Border>
    </Style>
    </ChartMajorGridLines>
    <ChartMinorGridLines>
    <Style>
    <Border>
    <Color>Gainsboro</Color>
    <Style>Dotted</Style>
    </Border>
    </Style>
    </ChartMinorGridLines>
    <ChartMinorTickMarks>
    <Length>0.5</Length>
    </ChartMinorTickMarks>
    <CrossAt>NaN</CrossAt>
    <Location>Opposite</Location>
    <Minimum>NaN</Minimum>
    <Maximum>NaN</Maximum>
    <ChartAxisScaleBreak>
    <Style />
    </ChartAxisScaleBreak>
    </ChartAxis>
    </ChartValueAxes>
    <Style>
    <BackgroundGradientType>None</BackgroundGradientType>
    </Style>
    </ChartArea>
    </ChartAreas>
    <ChartLegends>
    <ChartLegend Name="Default">
    <Style>
    <BackgroundGradientType>None</BackgroundGradientType>
    <FontSize>8pt</FontSize>
    </Style>
    <ChartLegendTitle>
    <Caption />
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextAlign>Center</TextAlign>
    </Style>
    </ChartLegendTitle>
    <HeaderSeparatorColor>Black</HeaderSeparatorColor>
    <ColumnSeparatorColor>Black</ColumnSeparatorColor>
    </ChartLegend>
    </ChartLegends>
    <ChartTitles>
    <ChartTitle Name="Default">
    <Caption>Chart Title</Caption>
    <Style>
    <BackgroundGradientType>None</BackgroundGradientType>
    <FontWeight>Bold</FontWeight>
    <TextAlign>General</TextAlign>
    <VerticalAlign>Top</VerticalAlign>
    </Style>
    </ChartTitle>
    </ChartTitles>
    <Palette>BrightPastel</Palette>
    <ChartBorderSkin>
    <Style>
    <BackgroundColor>Gray</BackgroundColor>
    <BackgroundGradientType>None</BackgroundGradientType>
    <Color>White</Color>
    </Style>
    </ChartBorderSkin>
    <ChartNoDataMessage Name="NoDataMessage">
    <Caption>No Data Available</Caption>
    <Style>
    <BackgroundGradientType>None</BackgroundGradientType>
    <TextAlign>General</TextAlign>
    <VerticalAlign>Top</VerticalAlign>
    </Style>
    </ChartNoDataMessage>
    <DataSetName>DataSet3</DataSetName>
    <Top>0.59667in</Top>
    <Left>0.24667in</Left>
    <Height>3.55in</Height>
    <Width>4.53667in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>White</BackgroundColor>
    <BackgroundGradientType>None</BackgroundGradientType>
    </Style>
    </Chart>
    <Textbox Name="Textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=day(DateAdd("d",-1,DateAdd("M",1,cdate(cstr(Month(First(Fields!workday.Value, "DataSet3")) )+"/01/" + cstr(Year(First(Fields!workday.Value, "DataSet3")))))))</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox2</rd:DefaultName>
    <Top>4.33833in</Top>
    <Left>2.21333in</Left>
    <Height>0.25in</Height>
    <Width>1in</Width>
    <ZIndex>2</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>4.71333in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>6abd5341-c043-4ab1-b449-c32e00efc4ac</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>SELECT 1 ID, 1 MONTH, 50 VALUE
    UNION
    SELECT 1 ID, 2 MONTH, 30 VALUE
    UNION
    SELECT 1 ID, 3 MONTH, 20 VALUE
    UNION
    SELECT 1 ID, 4 MONTH, 10 VALUE
    UNION
    SELECT 1 ID, 5 MONTH, 25 VALUE
    UNION
    SELECT 1 ID, 6 MONTH, 50 VALUE
    UNION
    SELECT 1 ID, 7 MONTH, 10 VALUE
    UNION
    SELECT 1 ID, 8 MONTH, 20 VALUE
    UNION
    SELECT 1 ID, 9 MONTH, 30 VALUE
    UNION
    SELECT 1 ID, 10 MONTH, 40 VALUE
    UNION
    SELECT 1 ID, 11 MONTH, 45 VALUE
    UNION
    SELECT 1 ID, 12 MONTH, 50 VALUE
    UNION
    SELECT 2 ID, 1 MONTH, 25 VALUE
    UNION
    SELECT 2 ID, 2 MONTH, 30 VALUE
    UNION
    SELECT 2 ID, 3 MONTH, 10 VALUE
    UNION
    SELECT 2 ID, 4 MONTH, 30 VALUE
    UNION
    SELECT 2 ID, 5 MONTH, 45 VALUE
    UNION
    SELECT 2 ID, 6 MONTH, 35 VALUE
    UNION
    SELECT 2 ID, 7 MONTH, 10 VALUE
    UNION
    SELECT 2 ID, 8 MONTH, 50 VALUE
    UNION
    SELECT 2 ID, 9 MONTH, 20 VALUE
    UNION
    SELECT 2 ID, 10 MONTH, 14 VALUE
    UNION
    SELECT 2 ID, 11 MONTH, 40 VALUE
    UNION
    SELECT 2 ID, 12 MONTH, 45 VALUE</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="ID">
    <DataField>ID</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="MONTH">
    <DataField>MONTH</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="VALUE">
    <DataField>VALUE</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="DataSet2">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>Select 25000 target</CommandText>
    </Query>
    <Fields>
    <Field Name="target">
    <DataField>target</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="DataSet3">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>
    select 1 id, '03/01/2015' workday , 100 value
    union
    select 2 id, '03/02/2015' workday , 50 value
    union
    select 3 id, '03/03/2015' workday , 400 value
    union
    select 4 id, '03/04/2015' workday , 300 value
    union
    select 5 id, '03/05/2015' workday , 250 value
    union
    select 6 id, '03/06/2015' workday , 200 value
    union
    select 7 id, '03/07/2015' workday , 500 value
    union
    select 8 id, '03/08/2015' workday , 700 value
    union
    select 9 id, '03/09/2015' workday , 50 value
    union
    select 10 id, '03/10/2015' workday , 450 value
    union
    select 11 id, '03/11/2015' workday , 350 value
    union
    select 12 id, '03/12/2015' workday , 100 value
    union
    select 13 id, '03/13/2015' workday , 100 value
    union
    select 14 id, '03/14/2015' workday , 100 value
    union
    select 15 id, '03/15/2015' workday , 200 value
    union
    select 16 id, '03/16/2015' workday , 700 value
    union
    select 17 id, '03/17/2015' workday , 450 value
    union
    select 18 id, '03/18/2015' workday , 100 value
    union
    select 19 id, '03/19/2015' workday , 700 value
    union
    select 20 id, '03/20/2015' workday , 300 value
    union
    select 21 id, '03/21/2015' workday , 100 value
    union
    select 22 id, '03/22/2015' workday , 200 value
    union
    select 23 id, '03/23/2015' workday , 700 value
    union
    select 24 id, '03/24/2015' workday , 100 value
    union
    select 25 id, '03/25/2015' workday , 100 value
    union
    select 26 id, '03/26/2015' workday , 450 value
    union
    select 27 id, '03/27/2015' workday , 200 value
    union
    select 28 id, '03/28/2015' workday , 100 value
    union
    select 29 id, '03/29/2015' workday , 450 value
    union
    select 30 id, '03/30/2015' workday , 300 value
    union
    select 31 id, '03/31/2015' workday , 700 value</CommandText>
    </Query>
    <Fields>
    <Field Name="id">
    <DataField>id</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="workday">
    <DataField>workday</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="value">
    <DataField>value</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>59e8101c-8585-409d-82e7-c6719e928567</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • SSRS 2012 Displaying unwanted subtotal rows in reports

    This looks like an Issue that has been noted and solved in prior versions of SSRS however we are now seeing similar issues in SSRS 2012 and have been unable to find a solution to this yet...
    Basically when we export a report with groupings and no subtotals to excel we get blank rows added to excel with the subtotals for each level in the report - sample is below, unwanted rows are highlighted in yellow:
    This was a very simple report, I have included the DQL and the RDL below for any help as we cannot get to the bottom of this problem...
    SQL - create this table in any database:
    create table test_SSRS
    ( Department varchar(50),Category varchar(50),Product varchar(50),market_value int );
    insert test_SSRS
    select 'Electronics','Computer', 'Laptops', 20000.00
    union
    select 'Electronics','Computer', 'Notebooks', 40000.00
    union
    select 'Electronics','Computer', 'Desktops', 40000.00
    union
    select 'Electronics','TV', 'LED', 60000.00
    union
    select 'Electronics','TV', 'Smart TV', 70000.00
    union
    select 'Cell Phones','Smart Phone', 'iPhone', 50000.00
    union
    select 'Cell Phones','Smart Phone', 'Google Phone', 60000.00
    union
    select 'Cell Phones','Tablets', 'iPad', 150000.00
    union
    select 'Cell Phones','Tablets', 'Kindle', 100000.00
    RDL
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <ConnectionProperties>
    <DataProvider>SQL</DataProvider>
    <ConnectString>Data Source=stansqlq1;Initial Catalog=DATAMART</ConnectString>
    <IntegratedSecurity>true</IntegratedSecurity>
    </ConnectionProperties>
    <rd:SecurityType>Integrated</rd:SecurityType>
    <rd:DataSourceID>30d18984-87ed-4236-a848-87f0c77010c1</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select * from test_SSRS</CommandText>
    </Query>
    <Fields>
    <Field Name="Department">
    <DataField>Department</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Category">
    <DataField>Category</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Product">
    <DataField>Product</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="market_value">
    <DataField>market_value</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportSections>
    <ReportSection>
    <Body>
    <ReportItems>
    <Tablix Name="Tablix2">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox6">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>market value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox6</rd:DefaultName>
    <Style>
    <Border>
    <Color>#7292cc</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#4c68a2</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="market_value">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!market_value.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <Color>#4d4d4d</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>market_value</rd:DefaultName>
    <Style>
    <Border>
    <Color>#e5e5e5</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Textbox11">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Department</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox11</rd:DefaultName>
    <Style>
    <Border>
    <Color>#7292cc</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#4c68a2</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Textbox9">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Category</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox9</rd:DefaultName>
    <Style>
    <Border>
    <Color>#7292cc</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#4c68a2</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Textbox7">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Product</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox7</rd:DefaultName>
    <Style>
    <Border>
    <Color>#7292cc</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#4c68a2</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    <TablixMember>
    <Group Name="Department">
    <GroupExpressions>
    <GroupExpression>=Fields!Department.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Department.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Department">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Department.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>#465678</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Department</rd:DefaultName>
    <Style>
    <Border>
    <Color>#c6daf8</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#9eb6e4</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <Group Name="Category">
    <GroupExpressions>
    <GroupExpression>=Fields!Category.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Category.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Category">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Category.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>#4c68a2</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Category</rd:DefaultName>
    <Style>
    <Border>
    <Color>#e6eefc</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#c6daf8</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <Group Name="Product">
    <GroupExpressions>
    <GroupExpression>=Fields!Product.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Product.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Product">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Product.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>#4c68a2</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Product</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#e6eefc</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <Visibility>
    <Hidden>true</Hidden>
    <ToggleItem>Category</ToggleItem>
    </Visibility>
    </TablixMember>
    </TablixMembers>
    <Visibility>
    <Hidden>true</Hidden>
    <ToggleItem>Department</ToggleItem>
    </Visibility>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.4in</Top>
    <Height>0.5in</Height>
    <Width>4in</Width>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    <Textbox Name="ReportTitle">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Verdana</FontFamily>
    <FontSize>20pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:WatermarkTextbox>Title</rd:WatermarkTextbox>
    <rd:DefaultName>ReportTitle</rd:DefaultName>
    <Height>0.4in</Height>
    <Width>5.5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>2.25in</Height>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Body>
    <Width>6in</Width>
    <Page>
    <PageFooter>
    <Height>0.45in</Height>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <PrintOnLastPage>true</PrintOnLastPage>
    <ReportItems>
    <Textbox Name="ExecutionTime">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Globals!ExecutionTime</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>ExecutionTime</rd:DefaultName>
    <Top>0.2in</Top>
    <Left>4in</Left>
    <Height>0.25in</Height>
    <Width>2in</Width>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </PageFooter>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    </ReportSection>
    </ReportSections>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>fe1e2732-fe09-4d24-9c9b-2fb7d1724e2e</rd:ReportID>
    </Report>
    In order to test with this switch the datasource to your local database.
    Jeremy Gillespie

    Hi Jeremy,
    After testing the issue in my environment, I can reproduce it. When we export a report with drilldown actions to excel, it will add an extra row for each group. The reason behind the extra row is to provide at least one row for excel that always displays
    regardless the toggle state. In your scenario, if we use the =Sum(Fields!market_value.Value) in the details row, then the extra row will display the total of this group, if we use the Fields!market_value.Value in the details row, then the extra row will display
    the first value of this group. Based on my research, this is by design.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Expression in SSRS Slowing down Report Rendering

    An expression in my report is making the report to run very slowly. The
    expression, set in a Row Column Visibility Property is like so:
    =IIF(Parameters!View.Value = 1 AND (Fields!PastVal.Value = 0)AND(Fields!DatePay.Value = 0) AND
    (Fields!Line.Value = 0),True, IIF(Parameters!View.Value = 2 AND Fields!TaxPaid.Value = "N",True, False))
    Now this expression returns the right result. The problem is that it makes the report run very slow. To test it, I took off the expression and reports are displayed in less than 3 seconds but with the expression on, report takes over 50 seconds to run.
    Any help on this? Thanks.
    Zionlite

    Hi Zionlite,
    After creation of that column just go to the row visibility property and use newly created calculated column directly as shown in below screen.
    I kept both tablix one is normal having expression in visibilty condition and another with calculated columnto verify the result. when I run the report result is like below:-
    I also attached the code for reference.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Tax</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Past Val</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox5">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Date Pay</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox5</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox6">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Comment</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox6</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="TaxPaid">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!TaxPaid.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>TaxPaid</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="PastVal">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!PastVal.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>PastVal</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="DatePay">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!DatePay.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>DatePay</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Line">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Line.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Line</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <Visibility>
    <Hidden>=IIF(Parameters!View.Value = 1 AND (Fields!PastVal.Value = 0)AND(Fields!DatePay.Value = 0) AND (Fields!Line.Value = 0),True, IIF(Parameters!View.Value = 2 AND Fields!TaxPaid.Value = "N",True, False))</Hidden>
    </Visibility>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.37in</Top>
    <Height>0.43in</Height>
    <Width>4in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>SampleReport</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>20pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>2.68in</Height>
    <Style />
    </Body>
    <Width>6in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>c74df62d-433f-4dae-a6b1-7387b9a36c1f</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>SELECT 'N' TaxPaid,0 PastVal , 0 DatePay, 0 Line
    UNION
    SELECT 'N' Tax,0 PastVal , 1 DatePay, 0 Line
    union
    SELECT 'Y' Tax,1 PastVal , 0 DatePay, 1 Line
    UNION
    SELECT 'Y' Tax,1 PastVal , 1 DatePay, 1 Line</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="TaxPaid">
    <DataField>TaxPaid</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="PastVal">
    <DataField>PastVal</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="DatePay">
    <DataField>DatePay</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="Line">
    <DataField>Line</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="View">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>="Green"</Value>
    </Values>
    </DefaultValue>
    <Prompt>View</Prompt>
    <ValidValues>
    <ParameterValues>
    <ParameterValue>
    <Value>1</Value>
    <Label>1</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>2</Value>
    <Label>2</Label>
    </ParameterValue>
    </ParameterValues>
    </ValidValues>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <Variables>
    <Variable Name="v">
    <Value>abc</Value>
    </Variable>
    </Variables>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>caef6cad-e332-404c-b665-ef6f64b7ae23</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • Calculated fields in ssrs

    Hi friends,
    hope everyone had a good weekend.
    I have one requirement to call the value from different datasets within the same report.But the value should be returned based on multiple column join values.
    Ex: Main dataset query
      SELECT *  FROM   table a 
     WHERE  a.ChargeDate>=@TransactionDateFrom AND a.ChargeDate<=@TransactionDateTo AND a.DebtorID= @DebtorID
    dataset 2:
    SELECT * FROM  table b 
     WHERE  b.ChargeDate>=@GLStartYearDate AND b.ChargeDate<=@TransactionDateTo AND b.DebtorID= @DebtorID
    here i have tried to create a calculated field by joining multiple columns to use the lookup to display the value from dataset 2
    My approach: 
    calculated field in main dataset as Join1
    =Parameters!TransactionDateFrom.Value + "||" + Parameters!TransactionDateTo.Value + "||" + Parameters!DebtorID.Value
    calculated field in main dataset 2 as JoinArrears
    =Parameters!GLStartYearDate.Value + "||" + Parameters!TransactionDateTo.Value + "||" + Parameters!DebtorID.Value
    to display:
    =LookupSet(Fields!Join1.Value, Fields!JoinArrears.Value, AllocatedAmount.Value, "dataset2")
    but it is giving error..Please suggest me any solution for this.
    Thanks,
    sam.

    Hi Sam,
    I have copied the RDL code , please copy and save as .RDL file. Using Lookup I did this.
    In my implementaion if is not matching with your requirement, kindly let me know.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>ID</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>fruit</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox5">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Fruit Name</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox5</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="id">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!id.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>id</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="fruit11">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!fruit1.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>fruit11</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="FruitName11">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!FruitName1.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>FruitName11</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.36in</Top>
    <Height>0.43in</Height>
    <Width>3in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>LookupSet</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>20pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.36in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="table2">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>ID</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>fruit</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox6">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Fruit Name</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox5</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="id2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!id.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>id</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="fruit2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!fruit.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>fruit</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="FruitName2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Join.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>FruitName</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group2">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet2</DataSetName>
    <Top>1.11229in</Top>
    <Height>0.43in</Height>
    <Width>3in</Width>
    <ZIndex>2</ZIndex>
    <Style />
    </Tablix>
    <Tablix Name="Tablix2">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox19">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Amount</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox19</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox20">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Lookup(Fields!FruitName1.Value,Fields!Join.Value,Fields!amount.Value, "DataSet2")</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox20</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    </TablixMember>
    <TablixMember>
    <Group Name="Details" />
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>1.93625in</Top>
    <Left>0.16542in</Left>
    <Height>0.5in</Height>
    <Width>1in</Width>
    <ZIndex>3</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>3.05042in</Height>
    <Style />
    </Body>
    <Width>5.16542in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="AdventureWorks2008R2">
    <DataSourceReference>AdventureWorks2008R2</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>830bec66-3eef-4c84-b26b-69b2843906ca</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>AdventureWorks2008R2</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Fruit">
    <Value>=Parameters!Fruit.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>select * from
    Select 1 id , 'Apple' fruit
    union
    Select 2 id , 'Mango' fruit
    union
    Select 3 id , 'Grapes' fruit
    ) t
    where id =@Fruit</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="id">
    <DataField>id</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="fruit1">
    <DataField>fruit</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="FruitName1">
    <Value>=Parameters!Fruit.Value +"||"+Parameters!FruitName.Value +"||" +Parameters!abc.Value</Value>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="DataSet2">
    <Query>
    <DataSourceName>AdventureWorks2008R2</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Fruit">
    <Value>=Parameters!Fruit.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>select * from
    Select 1 id , 'Apple' fruit ,1000 amount
    ) t
    where id =@Fruit</CommandText>
    </Query>
    <Fields>
    <Field Name="id">
    <DataField>id</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="fruit">
    <DataField>fruit</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="amount">
    <DataField>amount</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="Join">
    <Value>=Parameters!Fruit.Value +"||"+Parameters!FruitName.Value+"||" +Parameters!abc.Value</Value>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="Fruit">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>1</Value>
    </Values>
    </DefaultValue>
    <Prompt>Fruit</Prompt>
    </ReportParameter>
    <ReportParameter Name="FruitName">
    <DataType>DateTime</DataType>
    <DefaultValue>
    <Values>
    <Value>=now()</Value>
    </Values>
    </DefaultValue>
    <Prompt>FruitName</Prompt>
    </ReportParameter>
    <ReportParameter Name="abc">
    <DataType>DateTime</DataType>
    <DefaultValue>
    <Values>
    <Value>=now()</Value>
    </Values>
    </DefaultValue>
    <Prompt>abc</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>c87d19dd-1be9-4dc4-9237-63d06aa7a91a</rd:ReportID>
    </Report>

  • SSRS BgColor FILL

    Hi,
    Need a help in SSRS .
    i want to change the row color irrespective of values (NULL also) based on a condition .
    please find the below example
    Name A1 B1 C1
    A         1
    B              2
    C                      3
    in the above example , i want to get the A row to be colored in red(in cell A:B1,A:C! also).
    ps: in the above format A1,B1,C1 are matrix.
    thanks in advance.

    Hi Chandra,
    I am able to reproduce your issue, you are using Matrix control not Tabix control.
    Seond thing in matrix control also it will work fine , if you modify your SQL query as given below:-
    select 'A' Name,'A1' City ,'Y' val
    union
    select 'A' Name,'B1' City ,NULL val
    union
    select 'A' Name,'C1' City ,NULL val
    union
    select 'B' Name,'A1' City ,NULL val
    union
    select 'B' Name,'B1' City ,'Y' val
    union
    select 'B' Name,'C1' City ,NULL val
    union
    select 'C' Name,'A1' City ,NULL val
    union
    select 'C' Name,'B1' City ,NULL val
    union
    select 'C' Name,'C1' City ,'Y' val
    Becauze when Value Cell is evaluating then its not finding the Name column, in your sql
    when Value is blank thats nothing (Not NULL), it should have that row to evaluate.
    Below is the output of both the cases, one with my sql and another with your SQL, however same Matrix control.
    Code also given below:-
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=First(Fields!val.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>=iif(Fields!Name.Value="A","LightSkyBlue","No Color")</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_col">
    <GroupExpressions>
    <GroupExpression>=Fields!City.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!City.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="City1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!City.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>City1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_Name">
    <GroupExpressions>
    <GroupExpression>=Fields!Name.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Name.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Name">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Name.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    <TextRun>
    <Value>4</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Name</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>=iif(Fields!Name.Value="A","LightSkyBlue","No Color")</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.37in</Top>
    <Height>0.42in</Height>
    <Width>2in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>BgColor</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="Tablix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox7">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Name</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox7</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Value">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Value.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Value</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>=iif(Fields!Name.Value="A","LightSkyBlue","No Color")</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="City">
    <GroupExpressions>
    <GroupExpression>=Fields!City.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!City.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="City">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!City.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>City</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="Name">
    <GroupExpressions>
    <GroupExpression>=Fields!Name.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Name.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="Name1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Name.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Name1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>=iif(Fields!Name.Value="A","LightSkyBlue","No Color")</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet2</DataSetName>
    <Top>1.16333in</Top>
    <Height>0.5in</Height>
    <Width>2in</Width>
    <ZIndex>2</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>1.79833in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>ca7399ac-7cfc-46e6-831e-0b2290c7d03f</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select 'A' Name,'A1' City ,'Y' val
    union
    select 'A' Name,'B1' City ,NULL val
    union
    select 'A' Name,'C1' City ,NULL val
    union
    select 'B' Name,'A1' City ,NULL val
    union
    select 'B' Name,'B1' City ,'Y' val
    union
    select 'B' Name,'C1' City ,NULL val
    union
    select 'C' Name,'A1' City ,NULL val
    union
    select 'C' Name,'B1' City ,NULL val
    union
    select 'C' Name,'C1' City ,'Y' val
    </CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="Name">
    <DataField>Name</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="City">
    <DataField>City</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="val">
    <DataField>val</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="DataSet2">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>SELECT 'A' AS Name, 'A1' AS City, 'Y' AS Value
    UNION
    SELECT 'B' AS Name, 'B1' AS City, 'Y' AS Value
    UNION
    SELECT 'C' AS Name, 'C1' AS City, 'Y' AS Value </CommandText>
    </Query>
    <Fields>
    <Field Name="Name">
    <DataField>Name</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="City">
    <DataField>City</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Value">
    <DataField>Value</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>e17dffbf-c89b-47ce-872a-329978e90fd3</rd:ReportID>
    </Report>
    Thanks
    Prasad

  • SSRS Not Repeating the Group Header

    Hi folks,
            I have one situation, that need to repeat the group header on new page.
            I have the table that has grouping, and I have group header and details, each group will have one detail row only but the detail row will grows multiple page in that situation I need to repeat the header of that
    group but couldn't do it I have referred the following and tried its not working for me,
    http://blogs.msdn.com/b/robertbruckner/archive/2008/10/13/repeat-header-and-visible-fixed-header-table.aspx
    Thanks Vijay.K(விஜய்.க)

    Katherine Xiong,
               Thank you for you reply, i have done the report as like in you mentioned link but it doesn't works for me, i have done the one simple sample with my case, can you please look this and test this with export to PDF.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="Tablix1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>5in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.58333in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="CommunityID">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!CommunityID.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>CommunityID</rd:DefaultName>
    <RepeatWith>Tablix1</RepeatWith>
    <Style>
    <Border>
    <Color>Brown</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>3.16667in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!CommunityID.Value &amp; " : " &amp; Fields!CommunityName.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>Brown</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightGreen</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="CommunityID">
    <GroupExpressions>
    <GroupExpression>=Fields!CommunityID.Value</GroupExpression>
    </GroupExpressions>
    <PageBreak>
    <BreakLocation>Between</BreakLocation>
    </PageBreak>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!CommunityID.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixMembers>
    <TablixMember>
    <FixedData>true</FixedData>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    </TablixMember>
    <TablixMember>
    <Group Name="Details" />
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.00917in</Top>
    <Height>3.75in</Height>
    <Width>5in</Width>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>3.75917in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <PageHeight>5in</PageHeight>
    <PageWidth>8in</PageWidth>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <Transaction>true</Transaction>
    <ConnectionProperties>
    <DataProvider>SQL</DataProvider>
    <ConnectString>Data Source=SOLAR\SQLEXPRESS;Initial Catalog=master</ConnectString>
    <IntegratedSecurity>true</IntegratedSecurity>
    </ConnectionProperties>
    <rd:SecurityType>Integrated</rd:SecurityType>
    <rd:DataSourceID>2a33b9ca-0bda-4a13-b841-310d98327fc1</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>SELECT 1 AS CommunityID, 'Coimbatore North' AS CommunityName
    UNION ALL
    SELECT 2 AS CommunityID, 'Coimbatore South' AS CommunityName
    UNION ALL
    SELECT 3 AS CommunityID, 'Coimbatore Central' AS CommunityName</CommandText>
    </Query>
    <Fields>
    <Field Name="CommunityID">
    <DataField>CommunityID</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="CommunityName">
    <DataField>CommunityName</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>c105648b-74f9-49e8-b56c-3e9d1a31416c</rd:ReportID>
    </Report>
    Thanks Vijay.K(விஜய்.க)

  • Strange Matrix group by date question

    I have the following data:
    name
    date
    value
    bob
    1/1/2015
    5
    jane
    1/1/2015
    7
    jim
    1/1/2015
    9
    bob
    1/2/2015
    2
    jane
    1/2/2015
    5
    jim
    1/2/2015
    5
    bob
    1/2/2015
    4
    I am using a matrix with a group by date to produce the following:
    1/1/2015
    1/2/2015
    bob
    5
    4
    jane
    7
    5
    jim
    9
    5
    As you can see it only selected one value for bob on 1/2.
    Is is possible to show all of the values while still grouping by date?
    I would  prefer something like 
    1/1/2015
    1/2/2015
    1/2/2015
    bob
    5
    2
    4
    jane
    7
    5
    jim
    9
    5

    Hi ,
    I have created sample report based on your question. Steps are listed below:-
    Sample query is modified to get one more Column rowid as shown in below SQL query:-
    select *,row_number() over(partition by name,date order by date )rowid from
    SELECT 'bob' name, '1/1/2015' date ,5 value
    UNION
    SELECT 'jane' , '1/1/2015' , 7
    UNION
    SELECT 'jim' , '1/1/2015' , 9
    UNION
    SELECT 'bob' , '1/2/2015' , 2
    UNION
    SELECT 'jane' , '1/2/2015' , 5
    UNION
    SELECT 'jim' , '1/2/2015' , 5
    UNION
    SELECT 'bob' , '1/2/2015' , 4
    )T
    Now Create the matrix report rows --> Name
    Columns---> Date
    Detail---> Value
    After creation of matrix, just go to the Group Properties of Column group and add as shown below
    After this setting , run the report, it will give result as shown below:-
    RDL Code for reference:-
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!value.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_date">
    <GroupExpressions>
    <GroupExpression>=Fields!date.Value</GroupExpression>
    <GroupExpression>=Fields!rowid.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!date.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="date">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!date.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>date</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_name">
    <GroupExpressions>
    <GroupExpression>=Fields!name.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!name.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="name">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!name.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>name</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.37in</Top>
    <Height>0.42in</Height>
    <Width>2in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Strange Matrix Group by Date</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>14pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>1.04in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>b2ebe046-5f1b-45c9-82e7-5baa7ed2460a</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText> select *,row_number() over(partition by name,date order by date )rowid from
    SELECT 'bob' name, '1/1/2015' date ,5 value
    UNION
    SELECT 'jane' , '1/1/2015' , 7
    UNION
    SELECT 'jim' , '1/1/2015' , 9
    UNION
    SELECT 'bob' , '1/2/2015' , 2
    UNION
    SELECT 'jane' , '1/2/2015' , 5
    UNION
    SELECT 'jim' , '1/2/2015' , 5
    UNION
    SELECT 'bob' , '1/2/2015' , 4
    )T</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="name">
    <DataField>name</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="date">
    <DataField>date</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="value">
    <DataField>value</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="rowid">
    <DataField>rowid</DataField>
    <rd:TypeName>System.Int64</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>dfd8f7e8-fcc1-4636-991e-d86824825c30</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • Expression to find value for previous year SSRS

    Hi
    I need some help with expressions.I need a report that shows calcul of a field for current year as well as previous year respecting this rule expression(Last-Last Previous)/Last Previous*100 (I work with MDX Query and i work with SSRS 2008).
    Also the report runs on a Year Parameter. Below is an example for the result
    for example i selected the years 2010 2011 2012 i can select another years because i have the report runs on  a Year Parameter
    year
    Data 2010 2011 2012
    hp 14 25 30
    Dell 17 18 20
    and the result i want
    year
    Data 2010 2011 2012 2011/2012
    hp 14 25 30 0.002 (Last -Last Previous)/(last Previous*100) =(30-25)/(25*100)
    Dell 17 18 20 0.0040
    Thanks a lot

    Hi Yassir,
    Please find the RDL code, save the code into .RDL and run it
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!value.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox16">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=((last(Fields!value.Value) -Code.GetValueByKeyValue(Fields!keyvalue.Value)) /Code.GetValueByKeyValue(Fields!keyvalue.Value))*100</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <Format>f2</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox16</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_year">
    <GroupExpressions>
    <GroupExpression>=Fields!year.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!year.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="year">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!year.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>year</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="Textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_data">
    <GroupExpressions>
    <GroupExpression>=Fields!data.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!data.Value</Value>
    <Direction>Descending</Direction>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="data">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!data.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>data</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>1.20333in</Top>
    <Left>0.10833in</Left>
    <Height>0.42in</Height>
    <Width>3in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Get the last previous value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="Tablix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox7">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>data</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox7</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="previous">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!previous.Value)</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>previous</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox21">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Code.AddKeyValue(Fields!keyvalue.Value, last(Fields!previous.Value))</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox21</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="year">
    <GroupExpressions>
    <GroupExpression>=Fields!year.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!year.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="year1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!year.Value</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>year1</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixMember>
    <TablixMember>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="Textbox20">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox20</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="data">
    <GroupExpressions>
    <GroupExpression>=Fields!data.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!data.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="data1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!data.Value</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>data1</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet2</DataSetName>
    <Top>0.43944in</Top>
    <Left>0.29667in</Left>
    <Height>0.5in</Height>
    <Width>3in</Width>
    <ZIndex>2</ZIndex>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>1.76333in</Height>
    <Style />
    </Body>
    <Width>5.10833in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>87cd8154-60ce-43ca-a678-39a5c1bfeb15</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet2">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Year">
    <Value>=Parameters!Year.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>select * from
    SELECT data, year , value AS previous,cast(year as varchar)+ data as keyvalue,row_number() over(partition by data order by year desc) yeardesc
    FROM (SELECT 'HP' DATA, 2010 year, 14 value
    UNION
    SELECT 'HP' DATA, 2011 year, 25 value
    UNION
    SELECT 'HP' DATA, 2012 year, 30 value
    UNION
    SELECT 'Dell' DATA, 2010 year, 17 value
    UNION
    SELECT 'Dell' DATA, 2011 year, 18 value
    UNION
    SELECT 'Dell' DATA, 2012 year, 20 value
    ) AS t
    WHERE year IN (@Year)
    )t1
    where yeardesc &lt;&gt; 1
    order by year asc</CommandText>
    </Query>
    <Fields>
    <Field Name="data">
    <DataField>data</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="year">
    <DataField>year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="previous">
    <DataField>previous</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="keyvalue">
    <DataField>keyvalue</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="yeardesc">
    <DataField>yeardesc</DataField>
    <rd:TypeName>System.Int64</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Year">
    <Value>=Parameters!Year.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>SELECT data, year, value,cast(year as varchar)+data keyvalue
    FROM (SELECT 'HP' DATA, 2010 year, 14 value
    UNION
    SELECT 'HP' DATA, 2011 year, 25 value
    UNION
    SELECT 'HP' DATA, 2012 year, 30 value
    UNION
    SELECT 'Dell' DATA, 2010 year, 17 value
    UNION
    SELECT 'Dell' DATA, 2011 year, 18 value
    UNION
    SELECT 'Dell' DATA, 2012 year, 20 value) AS t
    WHERE year IN (@Year)</CommandText>
    </Query>
    <Fields>
    <Field Name="data">
    <DataField>data</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="year">
    <DataField>year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="value">
    <DataField>value</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="keyvalue">
    <DataField>keyvalue</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="Year">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>=2010</Value>
    <Value>=2011</Value>
    <Value>=2012</Value>
    </Values>
    </DefaultValue>
    <Prompt>Year</Prompt>
    <ValidValues>
    <ParameterValues>
    <ParameterValue>
    <Value>2010</Value>
    <Label>2010</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>2011</Value>
    <Label>2011</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>2012</Value>
    <Label>2012</Label>
    </ParameterValue>
    </ParameterValues>
    </ValidValues>
    <MultiValue>true</MultiValue>
    </ReportParameter>
    </ReportParameters>
    <Code>Public PersSal as New System.Collections.HashTable()
    Function ClearList(SomeValue as String) as String
    PersSal.Clear
    Return SomeValue
    End Function
    Function AddKeyValue(KeyValue as String, Value as Decimal) as Decimal
    Try
    PersSal.Add(KeyValue, Value)
    Return Value
    Catch ex as Exception
    End Try
    End Function
    Function GetValueByKeyValue (ByVal Key As String) As Decimal
    For Each clsPair As System.Collections.DictionaryEntry In PersSal
    If clsPair.Key.ToString() = Key Then Return clsPair.Value
    Next
    End Function</Code>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>53660ed8-b969-46cf-960b-2ccb14abf7e7</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

Maybe you are looking for

  • Mac will not boot up - stuck in safe mode

    Hi, my mac recently froze so I decided to hard-reset it in order to re-boot it quickly.  After it turned off, I tried to restart it but it sat on the grey screen with the spinning circle for at least 15 minutes, so obviously something is wrong. I loo

  • New to itunes & have questions...

    Just bought an ipod 30g video. LOVE IT! and itunes is good software once i figure out the little things. I've been using Musicmatch Jukebox, and Winamp pro for several years, neither are equiped to deal with the ipod. Is there a way to "refresh" or "

  • ZEN NANO PLUS PLAYING QUEST

    I just bought the GB Zen Nano Plus and I love it. But today something weird happened, it was playing through my songs as normal the at the end of a certain song when it went to the next track, this next track did not automatically start playing as it

  • Working with PDF, how to make it landscape?

    I'm using CF8 and I just want to create a very simple PDF report. Here is what I did: <cfdocument format="PDF" orientation = "landscape" saveasname="ReportName"                                  pagetype="custom" pageheight="8.5" pagewidth="15.5" marg

  • Java opening in Delhi

    Skills : Java, weblogic Exp : 2yrs Location : delhi/ NCR clients : will be disclosed once we will receive your resume. please send your resume to [email protected]