Scenario:
Filter the data Based on Region but the option should be available to Select the Region for the user.
Solution:
- Create a Cube Calculation View. Here I named it as “CV_RESTRICTED_US”.
- Drag and Drop the required tables in a Separate Projection node and Join them based on matching fields. Here I used “KNA1”, “T005T” and “T005U”.
- Join 1 as Shown Below:
- Join 2 as Shown Below:
- Finally, it looks like:
- Create an input parameter to hold values of selection for “Region” from the user as shown below:
- Now Let us create the filter using “Expression” as shown below:
- Right click the Projection 1 or some other node which contains Region field and select “Apply Filter”.
- Now you can see the Expressions under Filter in output panel in the right side.
- Now enter the following expression in Expression Editor: in("LAND1",'$$SELECT_REGION$$') or match ("LAND1",'*$$SELECT_REGION$$*')
- Finally, validate and activate the view.
- Results:
- input parameter pop up window will appear and select a required region. Here I choose “BR”. And then Click ok.
well explained good
ReplyDeleteHi,
ReplyDeleteThank you for sharing your knowledge.
Do you mind explaining how to add a valid code in Semantics node for a variable using Expression Editor? The output should be a help value extracted from a specific view column based on the current user.
Thank you in advance for your time.
Best regards,
Aurelia