Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

using aggregates in lookupset using two dataset

$
0
0
Hello,I have two dataset Sales , Budget.My Sales dataset has parameter as YTD/MTD. Depending on the selection i have to display the aggregated budget fields as If @parameter = YTD then Budget_Turnover_YTD \ Budget_QTY_YTD Else Budget_Turnover_MTD \ Budget_QTY_MTD (Imp: @Parameter is from sales dataset and its not in Budget dataset)I have included the calulation in the Budget dataset as calculated field Budget_Final.I use the following expression to display the above mentioned calculated field :=Code.SumLookup(Lookupset(Fields!Item_number.Value,Fields!Item_number.Value,Fields!Budget_Final.Value,"Budget"))But it the values under Fields!Budget_Final doesnt get calculated properly and shows wrong figures.So if any one can please guide as what solution needs to apply.Thanks,Nish.

Viewing all articles
Browse latest Browse all 2791

Trending Articles