Working environment is sharepoint2010. we have already connected the sharepoint list datasource to the report project in vs2008. Its possible to display the data in a single dataset using tablix. we have 2 datasets 1)salesMain 2)Customers
In salesMain, we have fields such as SalesID,CustomerID,saleDate,TotalAmount,taxAmt,netAmount
In Customer we have customerID,CustomerName,Address
I need to display the data like SalesID,CustomerName,Address,netAmount,TaxAmt,TotalAmount
We had assigned the SalesMain dataset to a Tablix, which displays the data as it is. The problem is that some of the data displayed is foriegn key values like CustomerID. we need to get the values like "customername" using the foriegn key value(CustomerID). What we done next is instead of the customerID field, using the placeholder, we had set an expression using the Lookup,but this field displays blank. The lookup method is some thing like this lookup. SalesMain dataset is the source(datasetname) of Tablix table1. the look up function we used is =Lookup(Fields!CustomerID.Value, Fields!customerID.Value, Fields!CustomerName.Value, "Customer")
where 1st parameter is the key to lookup(foriegnkey), 2nd parameter is the key to match on(primarykey of Customer),3rd parameter is the value to be retrieved(to be displayed in the tablix cell) and 4th parameter the dataset in the report(Customer)
Could any one suggest why Lookup dosent wrk. In the sharepointlist we did not use any lookup(in the sense that table relationship is not set.)