Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Use of User Input Variables?

$
0
0

As our HANA has been upgraded to SPS03 (SP21), I didn't hesitate to try user input variables. So I have created a variable V_CM in my Analytical View for, say, CALMONTH attribute, of the same data type as CALMONTH (varchar 6). Then I created a Calculated Measure (e.g. "CM1") with the formula logic to return 1 for CALMONTH variable equal to, say, '201112', and 0 otherwise.

 

What I noticed is that running a SQL query in the SQL Editor for that Analytical View didn't render a variable value entry popup, and CM1 was always 0. The same result I've got when running Analysis for Excel on top of that View.

 

I only got that variable value entry popup when running Data Preview function on my Analytical View in Studio -- but that has no practical use. When running Data Preview, I noticed that the generated SQL statement contained stuff like " ('PLACEHOLDER' = ('$$V_CM$$', '201102'))" -- is it how variables should be used in a SQL Editor to simulate the variable entry? How about Analysis for Excel and other user frontend tools?

 

Or is this functionality in the very early stage and should not be used yet? Any comment?

 

Thanks!


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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