Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2

$
0
0
Hello,

I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix)  and passing those  parameters. I am using SSRS 2008 R2.

Here's my scenario:
I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:  
ActiveTermLeave
Total12888121
United States1108085
New York653057
Manhattan1069
Buffalo20234
Albany35144
Texas455028
Dallas403022
Houston5206
France18836
Centre18836
Blois728
Druex6115
Tours5513

I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).

While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York  Status = Active. But the remaining parameters (Country and City  would be null). I know Country doesn't need to be Null in this case.

My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
As a crazy work-around (I think) I can put in the Where of the query  something along the lines of: this:
        and (a.Country in (@paramCountryCode) or NULL  in (@paramCountryCode) )
and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.

Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?

All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.

Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?

Thank you for the help.

~J




Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>