简体   繁体   中英

SSRS Multi Value Parameter

I have a report having two tab-lix and also two data set(eg=dataset1,dataset2) for each tab-lix. When i am generating report by passing the multiple parameter location id(38,39 & 40) value if there is no record of id-38 in dataset2 i want blank space but in my report it is showing report of 39. But i want if there is no data in data set based on the parameter it is showing only blank space.Because always dataset1 having data and so it showing properly.When i am generating report with multiple parameter(38,39,40) it showing tablix1 of 38 parameter but tablix2 of 39 parameter in on page because of there is no data in dataset2 of 38 parameter.So i want to display a blank space on behalf of tablix2 if there is no data.

Give me a solution.

This answer assumes you have a table that contains all locations eg DimLocations , if not you should consider creating one.

You can then change your dataset query to be something like.

SELECT loc.LocationID, t.SomeColumn, t.AnotherColumn
    FROM DimLocations loc
        LEFT JOIN myTable t ON loc.LocationID = t.LocationID
    WHERE loc.LocationID IN(@myLocationParameter)

This will ensure that you get a record for each location as long as it appears in the DimLocations table.

If this does not help, edit your question to show the dataset query you are using now and the structure of your locations table (if you have one)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM