Link to home
Start Free TrialLog in
Avatar of nosehead2000
nosehead2000

asked on

SSRS Table - 2 Dataset Comparisons

Hello -

I have a drilldown table in a report that looks at call data from one datasource (company -> year -> month -> calls). I am trying to use an IIf statement in the table to look at sales for those related months in the same table. This data is in a different datasource.

If I just throw in a sum(sales), it retrieves the correct total sales, but I want to match up on the drilldown month.

I end up with an aggregate function not allowed in scope.

Thanks!

1. works in "Calls" Table - retrieves total sales
2. ?

1.=Sum(Fields!total.Value, "Sales")
 
2.
=Sum(IIf((Fields!date.Value, "Sales") = (Fields!MidnighStartDate.Value, "Calls")), (Fields!total.Value, "Sales"), 0)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Auric1983
Auric1983
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial