cancel
Showing results for 
Search instead for 
Did you mean: 

Filter By Measure in Analytics Designer

rahulkumarsap
Participant
0 Kudos

Hi Experts

I am using live HANA connection.

How do I define filter by measure on a calculated measure in analytics designer of SAC?

Accepted Solutions (0)

Answers (2)

Answers (2)

saurabh_sonawane
Active Contributor
0 Kudos

Hi ,

step 1 create a calculated measure inside the model only

step 2 use that measure to filter the data

Thanks,

Saurabh S.

0 Kudos

- Could you move the calculated measure in Analytics Designer into your HANA model by creating a Calculated Column?

-Formula could be something like
Name: CalCol
Formula: if (x/y > '$$IP_FILTERVAL$$', 1, else 0)

-Then you could apply a filter where CalCol = 1.

- IP_FILTERVAL is an input parameter.

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

- Code in Analytics Designer would be similar to:
var dsSI = tblStatistics.getDataSource();
dsSI.setVariableValue("IP_FILTERVAL", dblLimit);