I have a table in PowerPivot that is pulling a value from a related table using the related Function. I’m then trying to test if that value is 1 of 4 values, and if so, return a value from another related table, otherwise return a value from another column within the same table.
For example, I have a table with data from my accounting system with portfolio or company numbers named Accounting_tbl. I have a crosswalk table that is linked that I use a RELATED() function to pull the related custodial bank account numbers (which happen to be alpha numeric). So company number 100 in my Accounting_tbl is CUST19 at my custodial bank per the Crosswalk_tbl. I want to then test all values returned to the Accounting_tbl from the Crosswalk_tbl to see if it is one of 4 values that I put in another table IntlFunds_tbl. I attempted to do this using a formula found on one of Rob Collie's posts about CONTAINSX. Below is the formula I tried to use. I get an error back in my Excel window saying “Cannot query supporting structures for column Accounting_tbl[CalculatedColumn1] because they depend on a column, relationship, or measure that is not processed. Please refresh or recalculate the model.” But refreshing the model doesn’t clear the error. Here is my formula:
When I enter this formula I also get the following error “The end of the input was reached. The calculated column contains a syntax error. Provide a valid formula.” I’m not actually trying to return Yes or Probably Not, I want to return a value from a linked table if the answer is greater than 0 and a column from the same Accounting_tbl if SUMX is 0. I just thought returning the text would be a good proof of concept.
Can anyone tell me where I might be going wrong? I feel like I'm following the syntax of the post, but I didn't try to rebuild his example to make sure it worked since others that commented seemed to be able to use it. I tried simplifying the formula to just the FIND() function portion and it too gives me an error. I should mention that I use the auto-fill enter the names of the tables and fields so I know it's not an issue with misspelling or anything like that.
Any help would be much appreciated.
For example, I have a table with data from my accounting system with portfolio or company numbers named Accounting_tbl. I have a crosswalk table that is linked that I use a RELATED() function to pull the related custodial bank account numbers (which happen to be alpha numeric). So company number 100 in my Accounting_tbl is CUST19 at my custodial bank per the Crosswalk_tbl. I want to then test all values returned to the Accounting_tbl from the Crosswalk_tbl to see if it is one of 4 values that I put in another table IntlFunds_tbl. I attempted to do this using a formula found on one of Rob Collie's posts about CONTAINSX. Below is the formula I tried to use. I get an error back in my Excel window saying “Cannot query supporting structures for column Accounting_tbl[CalculatedColumn1] because they depend on a column, relationship, or measure that is not processed. Please refresh or recalculate the model.” But refreshing the model doesn’t clear the error. Here is my formula:
Code:
=IF(SUMX(IntlFunds_tbl,
FIND(IntlFunds[Fund Number],Accounting_tbl[Acct_Fund_Num],1,0)>0,
”Yes”,”Probably Not”)
Can anyone tell me where I might be going wrong? I feel like I'm following the syntax of the post, but I didn't try to rebuild his example to make sure it worked since others that commented seemed to be able to use it. I tried simplifying the formula to just the FIND() function portion and it too gives me an error. I should mention that I use the auto-fill enter the names of the tables and fields so I know it's not an issue with misspelling or anything like that.
Any help would be much appreciated.