on 10-16-2023 11:19 AM
Hello,
I have a Data Action that includes the following instruction:
MEMBERSET [d/Date] = BASEMEMBER([d/Date].[h/PATTERN_YQPW], %TargetDate%)
Now, I need to pass an argument to this data action, from the script in my analytical application. How should be such argument formatted if I want to limit the scope to the 3rd week of 2022? The Date dimension uses the YQPW hierarchy.
...
DataAction_1.setParameterValue("TargetDate", ...);
DataAction_1.execute();
I tried many different combinations (including [Date].[YQPW].[Date.CALWEEK].[202203]) but nothing seem to work, so here I am.
I used the ID recommended by Nikhil Anand and in my Data Action monitor the exclamation point next to the TargetDate parameter is gone, however the VALIDATION error is still present.
The process doesnt reach Advanced Formulas(AF) and it fails at the validation step. The problem is most likely Date related because when I hardcode it in my AF no errors show up. Does anyone have an answer to this question or a resource that I could make use of to find an answer myself?
Thank you Nikhil for trying to help, I really appreciate it. Im sorry I have to communicate through the post but all of my comments are stuck in the pre-moderation queue
peter1998
setParameterValue(id: string, value: string | string[] | DataActionParameterValue JSON | number): void
The parameter is of type string for this API
It should be the just the id ( first column ) of that week member for the year which you can find in the date dimension. as per my week settings (4-4-5) its "202203" ( assuming week is the lowest level)
If Day is the lowest level, it will be still "202203" but now it will be parent of day
Br.
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
nikhil_1486
I really appreciate your help. I used the ID that you recommended and it seems that in my data action monitor the type of Date parameter is no longer the issue. However, the validation error still occurs and when I hardcode the value in my data action the problem is gone. So it's still Date related. When I try to hardcode the value, the advanced formula editor recommends the following value [2022].[20221].[202201].[202203]. Do you have any idea as to what could be causing this issue?
Kind regards,
Peter
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.