on 12-30-2020 10:38 AM
Hello,
I need to use dimension member property in my script.
Lets say, I have dimension "Version" with property "YrMth".
Property "YrMth" has value "202001".
I want to write the script in analytical app to show only Date which is maintained in property "YrMth".
How to read the property and use it in script to set the filter in Date Dimension.
Thanks,
Roger.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, ok...
I hope i understood your request this time.
What you could do is.
1. save Table_1.getDataSource().getResultSet()[0]["Version"].properties["Version.YrMth"] as a variable
2. find out the syntax of your Date Dimension ID by using console.log(Table_2.getDataSource.getResultSet) and run the application.
3. define the correct Member id from Date Dimension ID, normally looks like this: [Date Dimension ID].[Hierachy].[yyyymm] something like that.
4. then you could use Table_2. getDataSource.setDimensionFilter("Date Dimension ID", "Member ID");
Hope this time, i understood your question 🙂
Cheer,
Chia-Yu
Hi roger_2018,
Say if you have a table where you also show the version property, this would be the syntax;
console.log(Table_1.getDataSource().getResultSet()[0]["Version"].properties["Version.YrMth"]);
Hope this helps answering your question.
Cheers,
Chia-Yu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.