Skip to Content

Filter by property in Data Manager using VBA - BPC 10.1

Sep 20, 2017 at 07:24 PM


avatar image

Hi experts,

I've read in other topic ( that it is not possible to call a data manager through VBA passing a filter for a specific dimension.

Because that post is a little out of date, I'd like to know whether this constraint still remains in BPC 10.1.

For instance, I'd like to call a data manager that contains dimension country to be selected and only show those countries in specific area (area being a property in dimension country) and not the full list of countries



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Vadim Kalinin Sep 20, 2017 at 07:37 PM

Still no way to filter data in the SELECTINPUT prompt in DM advanced script.

Alternative - use VBA:

1. Get list of required members (using special hidden report or looping all members of dimension):

2. Use listbox in VBA form to allow user to select from the list mentioned above. TreeView control can be also used (more complicated).

3. Launch DM using VBA passing parameters to DM package:

If something is not clear - please ask additional questions!

Show 1 Share
10 |10000 characters needed characters left characters exceeded


"Get list of required members (using special hidden report or looping all members of dimension):" - I have added a new blog:

Or you can simply use OpenFilteredMemberSelector API function for steps 1 and 2:

Public Sub SelectMembers()
    Dim strMembers As String
    Dim strMem() As String
    Dim lngTemp As Long
    Dim lngTemp1 As Long
    strMembers = epm.OpenFilteredMemberSelector(epm.GetActiveConnection(ThisWorkbook.Worksheets("Sheet1")), "SOMEDIMNAME", "", "SOMEPROPERTYNAME=SOMEPROPERTYVALUE", True)
    strMembers = Left(strMembers, Len(strMembers) - 1) 'remove last ";"
    strMem = Split(strMembers, ";") 'string to array of strings
    For lngTemp = 0 To UBound(strMem)
        lngTemp1 = InStrRev(strMem(lngTemp), "[")
        strMem(lngTemp) = Mid(strMem(lngTemp), lngTemp1 + 1, Len(strMem(lngTemp)) - lngTemp1 - 1)
    Next lngTemp
    strMembers = Join(strMem, ",")
    MsgBox strMembers
End Sub

The resulting comma separated list of members strMembers can be used in ExeceuteDM call:

ExeceuteDM strAnsw,...