I've just discovered MS Excel's CUBEVALUE and other CUBE functions looking at SSAS - a way more powerful tool than building many pivot tables and then writing functions to look at the data. The MDX parameters inside the function are easy enough. I've written several successful functions so far, but a copy paste of the function from one cell to the next results in a #N/A error. When I change the reference for the member expression of the formula to point to a different account, it works. Some more info:- There is an intersection and value for the parameters of the function- The formula works on some rows of the offending column, but not others- The format of the cell refs for the member expression are the same for the bugs and non bugsThe offending formula:=CUBEVALUE("Dev_RECAST",$B$2,"[Account].[Account Code].["&J$7&"]","[Globals].[Year_Hier].[Year].["&J$14&"]","[Process].["&$D159&"].["&$F159&"]")Where "Recast" refers to the name of the cube, B2 refers to "Expenses", or type of Ledger Entry. Remove the last two lines, and the formula works. Change the account number in cell J7, and the formula works, whether the account number is typed or copied in place. Any help on the #N/A errors beyond MS's website is grealy appreciated.
↧