Quantcast
Viewing all articles
Browse latest Browse all 9071

SPS07 Adding filter to Analytic View

I am currently on SPS7 running 1.0.7404 SAP HANA Studio.

 

I have a time attribute that contains many years, for instance 2000 up until 2014.  I have a analytical view that contains a fact table with many years of data as well , for instance 2000 to 2014.  I join the fact table to this time attribute in this analytical view.  This analytical view now contains many years of data ( 2000 to 2014).  I do not want to restrict the time attribute because it is used for other analytical/calculation views.  I want to apply a filter to this analytical view to restrict the amount of years that is returned. 

 

Currently I can add a VARIABLE filter to the year attribute in this analytical view  . I am trying to create a range variable so that i can say "year > 2010" .  In the variable I choose a selection type of "range" .    Currently i can only put a default value of a number (2010) but i can not assign a default operator like greater than or less than.  I would like to make the default range value to be 3 years less than the current year.  I tried to create an expression to determine this value but there appears to be no functions that support this type of calculation , I can  not pull in column values nor can i extract the year out of the date functions that are available. 

 

So from here I have several questions: 

 

Can I set the default operator for a range variable(it always defaults to equal but i want greater than)?  Is there a way to create an expression for the default value to be 3 years less than the current year ( i do not see any functions in the list that would allow this)?  Is there a way to have a range variable ( or any type of variable) that has a default value assigned and NOT show up as a prompt? I do not want to be prompted every time for something that will not change.

 

I know that i can add filters to the attribute views on any column, I do not want to do this on the attribute but i am looking for this same functionality on either the analytical view or the calculation view but I do not see a way to do this yet, so i need your help!

 

Thanks!


Viewing all articles
Browse latest Browse all 9071

Trending Articles



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