on 01-08-2015 3:49 AM
Hi,
When i select the one particular entity i.e. E_1100 , it having the currency property is INR, this currency has to change the RPTCURRENCY dimension member i.e. INR. in the context member.
Context is locked for the users.
for example:
In context i have Entity dimension, RPTcurrency dimension
E_1100 INR.
In report user having the select parameter for the Entity Dimension. Now he has selected the E_1200 in the report , but it has currency property is USD
now the RPT Currency dimension should have to display the USD in the Context.
Please anybody help me.
Regards.
Surya
Hi Surya the code that you have posted
epm.SetContextMember CONNE, "CURRENCY", Range("A1")
works with all version of EPM?
I'm using EPM 10.0
setcontextmeber seems that are not present in the API section
could you advise me a different instructions?
thanks a lot
Francesco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Surya,
As you said when you are selecting entity E_1100 whose property currency is INR so this INR should change the context of RPTCurrency dimension.
To achieve this, you can filter RPTCurrency based on the property value of Entity dimension (i.e. INR in your example).
=epmcontextmember(,"RPTCurrency", "ID="&A1)
where A1 is the cell having the currency property of Entity dimension which you can extract through EPMMemberProperty formula.
Regards,
Meenu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Surya,
Please follow below steps-
1. Take EPMContextMember for Entity dimension in Cell A1.
2. Retrieve the currency property of Entity dimension in Cell A by writing EPMMemberProperty(,A1,"<propertyname>").
3. Now type =epmcontextmember(,"RPTCurrency", "ID="&A1) in cell A3.
4. Refresh the sheet.
Regards,
Meenu
Hi surya,
Did you try using VBA that already shared in my previous post? i have already shared two ways one is manual trigger and second is automatically.Below code will run whenever there is change in context. But i think you can achieve this only using VBA. In my system it is working perfectly.Try this and let me know if there are any problem.
Dim epm As New FPMXLClient.EPMAddInAutomation
Function AFTER_CONTEXTCHANGE()
Dim CONNE As String
CONNE = epm.GetActiveConnection(ActiveSheet)
'To set context
epm.SetContextMember CONNE, "CURRENCY", Range("A1")
End Function
Hi Meenu,
Is it working in your system? Because in my system it is not working, it is not changing my context automatically. When i double click on cell that contains context member of currency only single currency is available for selection, and i have to select that currency manually then it is updating.
Hi Surya,
Kindly close the old thread if quires are resolved.
How to close a discussion and why and The SCN Rules of Engagement
About your query I am not sure that whether we can change/ override the context depending on other dimension member selection.
You can add currency dimension in row axis and use "Dimension property" in edit report member selector. Hide that dimension in template
Shrikant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Surya,
Try the this method,
1) Through EPMMemberProperty formula call the property value of ENTITY dimension in one cell. For this maintain Currency property in Entity Dimension. In the below case I have call the Currency property value of Entity Dimension in Cell E1 (i.e EUR).
2) Give the Cell reference in the EPMOlapMemberO formula. In the below case I have Currency Dimension in Column axis and had given the reference of E1. Then Hide the particular Row.
Regards
Bhagyesh Ravange
Hi,
Thxs for you input.
Please understand my requirement.
You have taken RPTCurrenc dimension in column axis, that is not acceptable for me.
i am not considering the RPT Currency in column axis. I am considering only the Category and Time Dimension in the Column axis.
By using Entity dimension the RPT curency dimension member has to change.
My management not accepting to consider Currency dimension in column axis.
I Knew that what u have done. but dimension- RPTCurency has to change dynamically in CONTEXT
Please help me.
Hi Surya,
you can achieve this using simple VBA code. Use below vba code for overriding the context member. assign this code to button. it will change the context member.
Copy paste below code in one module and assign this code to the button.
First Enable FPMXLClient
Dim epm As New FPMXLClient.EPMAddInAutomation
Sub change context()
Dim CONNE As String
CONNE = epm.GetActiveConnection(ActiveSheet)
'To set context
epm.SetContextMember CONNE, "CURRENCY", Range("A1")
'To refresh
epm.RefreshActiveWorkBook
End Sub
where CURRENCY==> use your dimension name whose context want to change
Range("A1") ==> In A1 cell Populate property using EPMMemberproperty()
Basically we will set context member and refresh the workbook.After selection of the entity click on button so macro will run and context member will gets override in the Context Bar.
Regards,
Sushant
Hi Surya,
You can also use another approach whenever you change the context member (entity) value of the cell A1 gets changed according to property that you have maintained. whenever you change context below vba code will execute and the context member will changed accordingly automatically.
You can use AFTER_CONTEXTCHANGE function
First Enable FPMXLClient references and use below VBA code to change context automatically.
Dim epm As New FPMXLClient.EPMAddInAutomation
Function AFTER_CONTEXTCHANGE()
Dim CONNE As String
CONNE = epm.GetActiveConnection(ActiveSheet)
'To set context
epm.SetContextMember CONNE, "CURRENCY", Range("A1")
End Function
Use your dimension names.
Hope this will help you.
Regards,
Sushant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.