Hi I was wondering if there was a way to apply two conditions to an Excel 365 CubeMember function.
I currently have an old query that was poorly written and fails when when there are two sub account names that are the same. I would like to add the parent account ID to the condition as well as the sub account name and return the sub account ID.
The parent accent lives in the ACCOUNT table with ACCOUNT HCC ID being the parent account ID. B9 holds the sub account name
Current Code:
=IFERROR(CubeMember("CubeName","exists([Sub Account].[SUB ACCOUNT HCC ID].Children,[SUB ACCOUNT].SUB ACCOUNT NAME].["&$B9&"])","")