display data for every Customer

  • Hello

    I have two data sets dataset1 contains Center Id, Customer Id and dataset2 Contains Customer Id and few information of customers.i have two parameters Center Id, Customer Id .

    when I enter center Id it should display all the customer information in list format

    if i enter both it should display only that customer information how can i achieve this ????

    Any help would be appreciated

    Thanks

    -----------

    swat

  • Swat, a simple if...else condition may help you. Did you tried something of your own ?

  • Unless you can create a dataset that joins the tables together from the two datasets you have now, you will have to use a LookupSet function to return each value from dataset2 that matches the CustomerID associated with the selected CenterID. Because LookupSet can only return one type of value at at time, you will need a separate LookupSet function for each customer value you want to return.

    Assuming your tablix is built upon dataset1, the syntax would be something like =LookupSet(Fields!CustomerID.Value, Fields!CustomerID.Value, Fields!CustomerName.Value, "dataset2")

    In a query, this would be a simple join between the two tables represented in each currently defined dataset, but if you cannot write your own query against the data, LookupSet may be your only option.

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

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