SSRS select parent parameters based on child - reporting-services

I need to implement a SSRS report where I need to select values in my parent dropdowns based on the selected value of the child dropdown. My question would be more clear after the following example.
Assume I have 3 multivalued parameters in my SSRS report, Continents, Countries, and Cities.
On report load, the Continents parameter will be populated with all continents, Countries parameter will be populated with all countries, and the Cities parameter will be populated with all cities. Now if a user directly selects a city, I want to update the Countries and Continents parameters with the relevant values.
For e.g., if I select New Delhi in the Cities parameter, India and Asia should get selected in the Countries and Continents parameter respectively.
I hope my question is clear. My requirement involves several more dropdowns, but if it works for the above case, I think it would work for me.
Is this possible?

Related

ssrs table on and off based on parameter selection

I need help with an SSRS report that has one parameter 'Region' and they want to see the summary for each sales representative and detail .so in each region, there is a list of sales representative names that work under each region, so if I select one region lets say west that region can have 7 sales representative and I want to see the two tables that show the summary and the detail on top of each other and if I change to another region east that can have 20 Sales Rep and want to see same information as well and I want this to be displayed in one page, is there any possibility that the tables can be dynamically change based on the parameter selection,

SSRS sum of values attached to a group

I have a report that has a group. Lets say the report is grouped by state. And within each state, there are cities.
Attached to each state is some statistic I want to sum up. Lets say it is total number of public schools. This information only exists at the state level and does not exist at the individual city level.
Within each state group, I have detail rows that show bunch of information about each city. That detail isn't relevant for this question so I will skip over that.
Now, here is my question. On this report, I need to show bunch of totals. One of the totals I need to show is total number of public schools.
If I just do a regular SUM, it multiplies out the number attached to each state by the number of cities in each state. What I need to do is take a SUM of public schools and count each state just once.
I hope you understood my question.

Autopopulate combobox based on other combobox in access

I have a problem with two comboboxes in access. I have one where you can select the postal code and another where you can select the city. Every city is connected with a postal code. In the dropdown menu of the comboboxes is only one column visible (so in postal code you can only see the postal codes but not the cities that correspond to the postal code). Due to the fact that there is only one column visible I think it's impossible to use the
afterupdate Me.combopostalcode=Me.comboboxcity.column(...)
I tried with the DLookup function but it doesn't work. It only works if I create one combobox (for instance a combobox postal code) and a textbox city. If I change the city textbox in a combobox and write a DLookup in both comboboxes to fill in each other with the right value no value for postal code is filled in the combobox postal code if I select something in the combobox city. It also doesn't work in the opposite way if I select a postal code and want the city filled in the combobox.
I read something about cascading comboboxes but I think it's not the right solution to my problem.
Thanks in advance

Aggregation with nestged groups in SQL Server Reporting Services

Let's say we have the following data structure in SSRS report:
Disctricts are grouped by city and cities are grouped by country. And then at the country level I'd like to get SUM of population over cities (population is an attribute of a city and districts do not have population associated with them). At the moment, when aggregation is done with =SUM(Fields!city_population.Value) expression, population for each city is taken into account as many times as the number of districts it has associated - that is not correct.
I was thinking of getting data for summation from a supplementary dataset not having division of cities by districts (with the help of LookupSet function). But it probably won't support another grouping level of countries by year which is planned to be done further (can't figure out what can be used as a lookup key in such layout). Is there a way around this situation without lookups?
Update: It needs to be mentioned that City-District is a single entity corresponding to "city district or just the city if it has no districts". This entity was created in data source view as a named query using LEFT JOIN (an approach discussed in this question).
From what I have read I think you are saying that as population is recorded against City, if a City has say 3 districts, then your dataset would return the City 3 times each with the same population.
If this is the case and if the Expression for population is currently SUM(Fields!Population.Value) or similar, try changing it to Max(Fields!Population.Value). It's not a 'pure' solution but I think the results will be what you want and it's a quick fix.
It seems you don't have the right grouping settings in the tablix, a Lookup function is not required in this case.
Add a new tablix component to your report, drag and drop Country field to the Row Groups Pane above details default group.
Right click the Country column and select Insert Column / Inside Group:
In the created column type the header title and use the below expression
=SUM(Fields!city_population.Value)
Then drag and drop City field above details and below Country:
Finally drag and drop District field to right most column:

SSRS Populate Dropdown from Dataset

SSRS Populate Dropdown from Dataset.
My Dataset has list of customers made shopping in multiple grocery stores which are located in multiple cities for the period of last 90 days.
Requirement is, On selecting GroceryStoreA which is in the Dropdownlist box, i can see a second dropdownlist with multiple cities.
I can view the report for GroceryStoreA only for a SelectedCity. But my dataset has duplicate values of GroceryStoreA and duplicatevalues for Cities.
How should i populate the dropdownlist from Dataset with distinct values.
The query powering the dataset that's behind your parameters needs to return unique values only instead of every single row. You can use either SELECT DISTINCT or alternatively the GROUP BY clause to achieve that, depending on what else you want to use the dataset for.