Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Lookup function using SSAS datasets

$
0
0

I am trying to use the lookup function to combine two SSAS outputs in a report where the dimensionality is the same between the 2 datasets. 

For detail lines from the dataset, this is fine and works perfectly. However, my datasets also have sub totals from the SSAS queries. In my table I am using the Aggregate function to get the values in the sub totals correct (as the default SSRS method to use SUM is wrong!). However, I cannot get the lookup function to return results for the sub totals. 

In the target data my results look like (the top 2 rows are the subtotals for the MDX query)

Attr1Attr2TheValue

------------------------

H1null 100

H2null 200

H1D1 50

H1D2 50

H2D3 200

If i do =Lookup(Fields!Attr1.Value, Fields!Attr1.Value, Fields!TheValue.Value, "TargetDataset")

the lookup statement returns 50 for matching on 'H1' when i really want 100. It seems like the subtotal  rows are hidden somehow (presumably why you have to use aggregate).

Does anyone know how to get the out of the dataset using a lookup?

Ta for any help!



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>