Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

How do I reference multiple tables in SSAS Data Source View Named Calculation functionality?

$
0
0

Hi SSASers - 

On the Data Source View node of SSAS Visual Studio Interface, I want to create a named calculation that references multiple tables. Something like: CASE WHEN tableA.Column1 = 'Y' Then tableB.Column1 ELSE tableB.Column2 End, but the compiler throws an error here "Deferred prepare could not be completed". 

What is the syntax for referencing multiple tables on this node or how else can multiple tables be used to create a calculated value in SSAS? I'm new to SSAS and so far have been building big views and building calculations this way. Another option is the Calculation tab off the cube node but this calculation will need to be based off of dimensions AND measures so please provide a syntax example here also. 

Thanks in advance!


Carl


Viewing all articles
Browse latest Browse all 14337


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