Hi,
You can use EPMDimensionPropertyValues.
For more information on how to use this function check below video from EPM Academy
http://wiki.sdn.sap.com/wiki/display/CPM/EPM+Add-in+Academy
Miscellaneous Reporting -->Reporting using Dynamic Filters
Hope it helps..
regards,
Raju