21.07.2009, 20:05 | #1 |
Участник
|
Fred Shen: Argument passed to ‘KPIVALUE’ function must be a KPI name
Источник: http://fredshen.spaces.live.com/Blog...E4E3!338.entry
============== During the past two weeks, I have been troubleshooting the Reporting Services Error on the AX2009 Enterprise Portal, especially for the ‘argument passed to the 'KPIVALUE' function must be a Key Performance Indicator (KPI) name’ issue. In the following steps, I will show you how to troubleshoot the error with the not-functioning ‘KPI for Project Manager’ Report server report.
Open an AX client, go to Tools –> Development tools –> Label –> Label Editor and enter ‘KPI for Project Manager’, which we will get the label ID ‘@SYS121988’. In AX client, open an AOT tree, go to Menu items –> Output node, and right click and choose Find. In the search dialog, choose All nodes and in ‘Containing text’, enter the label ‘SYS121988’. Now we get the object which is ‘ProjKPI_ProjectManager’. In the AOT, go to Menu Items –> Output node and locate the ‘ProjKPI_ProjectManager’ and right click and choose properties. On the properties, we get the object which is ‘ProjKPI.ProjKPI.KPI’.
Because in the error ‘Query execution failed for dataset ‘NetWIP’. We double click the ‘NewWIP’ dataset in Visual Studio 2008. Press F5 to execute the query, put in company account value and click OK. The same error as on the portal.
Click File –> New –> Project, and select project type ‘Import Analysis Service 9.0 Database’. Click OK, then a wizard will guide you through to import the database. Based on the query to build the ‘NEWWIP’ dataset: “… SELECT {[MEASURES].[INDICATOR],KPIValue("Actual vs Budget Net WIP"), KPIGoal("Actual vs Budget Net WIP"), KPIStatus("Actual vs Budget Net WIP"), KPITrend("Actual vs Budget Net WIP")} ON COLUMNS FROM [Project Accounting Cube] …” The dataset is built upon [Project Accounting Cube]. Select ‘[Project Accounting Cube] in the solution explorer. and choose ‘View designer’. Change to ‘KPI’ tab,and choose the ‘Actual vs Budget Revenue’ From the Value Expression, we can see the KPI is defined on the basis of measure ‘Budget Revenue’ and measure ‘Actual Revenue’. (([Measures].[Budget Revenue]-[Measures].[Actual Revenue])/[Measures].[Budget Revenue])*100 Expand the Measures in the ‘Metadata’ tab of the ‘Calculation Tools’ section. OOPS!!!!!! Can’t find the ‘Budget Revenue’ measure!!!!!!! Okay, now we see, must be something wrong with the ‘Budget Revenue’ measure. Change to ‘Calculation’ tab in the same ‘Project Accounting Cube’. Choose the ‘Budget Revenue’ Calculated Member. It is derived from another two Calculated Members - ‘Budget invoiced revenue’ and ‘Budget accrued revenue’. Expression for ‘Budget invoiced revenue’: Expression for ‘Budget accrued revenue’: Both of them are based on the Dimension ‘Budget updates’, and they do not appear under the Measures as well, which means the data are not populated properly. Expand the ‘Budget updates’ in the Metadata tab. Here we go, we found the cause of the issue. Apparently, the ENUMs are not updated properly. Go to the Solution explorer, and edit the ‘Budget updates’ dimension. From the property of, we can see the ENUM ProjTransType is from the following query: SELECT A.ENUMITEMVALUE, A.ENUMITEMLABEL AS ENUMITEMNAME FROM [DBO].SRSANALYSISENUMS A WHERE A.ENUMID = 383 AND A.LANGUAGEID = 'en-us' Let us check this table from the SQL Server Management Studio. All good, the records are there. (We need to check the ProjPaymentStatus, LedgerPostingType as well.) Then must be the issue that the dimension is not processed properly. From the expression for ‘Budget invoiced revenue’ : Sum ( ( {[Budget updates].[Transaction type].&[1], [Budget updates].[Transaction type].&[2], [Budget updates].[Transaction type].&[3], [Budget updates].[Transaction type].&[4]}, [Budget updates].[Posting type].&[126] ), [Measures].[Budget updates Amount] *-1 ) + Sum ( ( {[Budget updates].[Transaction type].&[5]}, [Budget updates].[Posting type].&[127] ), [Measures].[Budget updates Amount] *-1 ) Make sure in the ProjTransBudget table (Dimension [Budget updates]) contain the records meeting the above criteria. Process the ‘Budget updates’ dimension now. Click ‘Yes’ button. Click Run to process the ‘Budget updates’ dimension. Reconnect again Reload the role center… Источник: http://fredshen.spaces.live.com/Blog...E4E3!338.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
27.05.2010, 16:54 | #2 |
Модератор
|
Статья хорошая, но не помогает в решении проблемы KPI.
На этапе Цитата:
Okay, now we see, must be something wrong with the ‘Budget Revenue’ measure. Change to ‘Calculation’ tab in the same ‘Project Accounting Cube’.
Choose the ‘Budget Revenue’ Calculated Member. Кто что может посоветовать по The Key Perfomance Indicator (KPI) does not exist on the server ?
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
|
За это сообщение автора поблагодарили: mazzy (2). |
28.05.2010, 09:39 | #3 |
Модератор
|
mazzy за что спасибо?
Проблема с The Key Perfomance Indicator (KPI) does not exist on the server актуальна, решения пока не нашел. Проект НЕ СОЗДАЕТСЯ через Администрирование --> Настройка --> Бизнес-анализ --> OLAP --> Создать проект бизнес-аналитики В папке проекта только один файл AnalysisServicesProjects.database Был бы проект, я бы хоть сравнил что к чему. Какие только SDK, Visual Studio и т.д. я не ставил, все ему не почем. Как и не было проекта так и нет. Закрадываются смутные сомнения, может Dynamics Ax 2009 SP1 не нравится моя основная ОС Windows Server 2008 R2 64-бит. Может кто выложить стандартный сгенерированный проект по всем кубам и измерениям(Dynamics Ax 2009 SP1 Администрирование --> Настройка --> Бизнес-анализ --> OLAP --> Создать проект бизнес-аналитики) ?
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. Последний раз редактировалось Poleax; 28.05.2010 в 09:44. Причина: Microsoft Dynamics AX 2009 system requirements |
|
28.05.2010, 13:30 | #4 |
Участник
|
А вы пробовали не создавать проект, а открыть напрямую Analysis Service Database в SQL Server Business Intelligence Development Studio?
В таком режиме тоже выдается ошибка, что KPI не существуют на сервере?
__________________
Ivanhoe as is.. |
|
03.06.2010, 10:07 | #5 |
Модератор
|
Цитата:
Цитата:
В SQL Server Business Intelligence Development Studio 2008 SP1 создан проект на основе шаблона Import Analysis Services database из БД OLAP Dynamics Ax 2009.
Все измерения и кубы все отпроцессены без ошибок. Осталось одна проблема разобраться с KPI. http://www.sql.ru/forum/actualthread...=26&tid=762247
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
Теги |
ax2009, kpi, olap, visual studio, кубы, reporting services |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|