Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2695

Re: How to filter data in a Cal View Dynamically? (without using i/p parameters or variables)

$
0
0

Ok..  Now you know how to get current year in model .

 

In your first projection node, you can calculate  two columns with "Component" function.

Add another projection and filter on DIFF.  You only need data where DIFF is 0 , 1, and 2.

 

You can later use this DIFF field for "restricted column".

Overall model would be like this.. Apply filter at projection 2.

Projection 1 ------> Projection 2 ------->Aggregation ----->Semantics

 

However, this would bring all the data to Projection 1 and then filter at Projection 2.  You can do filter at projection 1 itself, using Input Parameter which dynamically gets the data.

 

Note: you can cast DIFF field as NVARCHAR( attribute), so that you can use it in Restriction .

 

FISCYEAR(A)CURRENT_YEAR(B)DIFF(B-A)
201620160
201520161
201420162
201320163
201420162
201520161
201320163
201620160
201120165
200920167

Viewing all articles
Browse latest Browse all 2695

Trending Articles



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