on 07-03-2021 10:44 PM
Hello,
I'd like to add a computed column to a story using code (java script) in an analytics application.
my code:
var sel = Dropdown_1.getSelectedKey(); //202001
ConvertUtils.stringToInteger(sel);
var sel5 = ConvertUtils.stringToInteger(sel) - 100; //201901
ConvertUtils.numberToString(sel5);
console.log(sel);
Table_1.getDataSource().setDimensionFilter("Date", {values: [sel, ConvertUtils.numberToString(sel5),"new column"]});
"new column" - is the new computed column. After adding a column, I would like to write a formula on it (e.g. A = B)
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.