SSRS drill-through report - passing only 2 of 3 parameter values

  • SSRS is not passing the last parameter in my drill through report...the first 2 work fine, but the 3rd requires me to select from available values defined in the Child report. Omit is set to False on all 3 parameters and there are no Default values in the Child report. Any suggestions?

    Below is a portion of the .rdl file for reference:

    <Style>

    <TextAlign>Center</TextAlign>

    </Style>

    </Paragraph>

    </Paragraphs>

    <rd:DefaultName>BusinessSection1</rd:DefaultName>

    <ActionInfo>

    <Actions>

    <Action>

    <Drillthrough>

    <ReportName>DetailBySection</ReportName>

    <Parameters>

    <Parameter Name="Method">

    <Value>=Fields!Method.Value</Value>

    </Parameter>

    <Parameter Name="Section">

    <Value>=Fields!BusinessSection.Value</Value>

    </Parameter>

    <Parameter Name="DateRangeType">

    <Value>=Fields!DateRangeType.Value</Value> ***this value is not being passed***

    </Parameter>

    </Parameters>

    </Drillthrough>

    </Action>

    </Actions>

    </ActionInfo>

    <ToolTip>Click to View Detailed Report</ToolTip>

    Dana

    "Drats! Foiled again!"
  • i found my issue and am posting the solution just in case someone else runs into the same problem:

    The data type was the issue. The Parameter 'DateRangeType' (Text data type) only determines which date range to use, either Fiscal Year or Calendar Year, but the actual VALUE being passed is Int (the year itself). i had to use the an expression to accurately define it and now it works! (whew!)

    .rdl file now reads:

    <Parameter Name="DateRangeType">

    <Value>=iif(Parameters!DateRangeType.Value="FiscalYear", "FiscalYear","CalendarYear")</Value

    Dana

    "Drats! Foiled again!"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply