Hi all
I have a challenge in excel that I cant seem to solve.
I built i fairly straight forward financial reporting model using power pivot. Some data are fetched from Dynamics NAV, some from within excel. All data is returned to the data model using queries.
I have set up a report in excel using cube formulas, but once in a while for no obvious reason some of the cubemember formulas suddenly return #NA in excel.
Ex. =CUBEMEMBER("ThisWorkbookDataModel";"[Measures].[Total_Amount_USD]") returns #NA in excel.
The funny part is that if I make a copy of that measure in the data model that measure seem to work...at least for a while.
The DAX is:
I have had this problem a year ago as well, without finding a solution.
PLEASE help this is really troublesome
Br Michael
I have a challenge in excel that I cant seem to solve.
I built i fairly straight forward financial reporting model using power pivot. Some data are fetched from Dynamics NAV, some from within excel. All data is returned to the data model using queries.
I have set up a report in excel using cube formulas, but once in a while for no obvious reason some of the cubemember formulas suddenly return #NA in excel.
Ex. =CUBEMEMBER("ThisWorkbookDataModel";"[Measures].[Total_Amount_USD]") returns #NA in excel.
The funny part is that if I make a copy of that measure in the data model that measure seem to work...at least for a while.
The DAX is:
Code:
Total_Amount_USD:=-CALCULATE (
SUMX (
'GL Entries';
'GL Entries'[Amount]
/ CALCULATE (
VALUES ( CurrencyRates[Rate] );
FILTER (
CurrencyRates;
CurrencyRates[Period] = 'GL Entries'[Period]
&& CurrencyRates[Currency code] = 'GL Entries'[Currency]
)
)
)
)
I have had this problem a year ago as well, without finding a solution.
PLEASE help this is really troublesome
Br Michael