我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How do I add units to my custom measurements so that they display in Web Applications Reports?

Issue
An existing custom measurement does not have an associated unit.

Product Line
ION Enterprise 6.0 SP1
Power Monitoring Expert (PME) 7.0.1
Power Monitoring Expert 7.2.2
Power Monitoring Expert 8.0
Power Monitoring Expert 8.1

Environment
SQL Server Management Studio
Web Applications Reports

Cause
Custom measurements do not have a default unit.

Resolution

*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*

In this example, the custom measurement we will add a unit to is called Cstm Meas, and the unit will be testunit.
Note: The custom unit name will only be available in one language (e.g. English).

For ION Enterprise 6.0 SP1

1. Run this query to update the triple store:

USE ION_Network
DECLARE @measurement NVARCHAR(1000)
SET @measurement = N'Cstm Meas'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'testunit', 'Q'


2. Check that your unit is written to the triple store correctly using this query:

USE ION_Network
SELECT DISTINCT
mm.[ID]
, mm.[StandardName]
, [LegacyID]
, [prefix]
, [unit]
, [phase]
, [quantity]
, [type]
, [format]
, [direction]
, [cumulative]
FROM
(SELECT [Subject], [SubjectNamespace], [Predicate], [Object] FROM dbo.vTS_Triples) AS [TS]
PIVOT
(
MAX([Object])
FOR [Predicate] IN
(
[LegacyID]
, [unit]
, [phase]
, [quantity]
, [type]
, [format]
, [prefix]
, [direction]
, [cumulative]
)
) AS [pvt]
INNER JOIN
dbo.MM_MeasurementMap mm ON (mm.FullName = [SubjectNamespace]+[Subject])
WHERE
mm.ID IN (10009) --> INSERT CUSTOM Measurement ID FROM MM_MeasurementMap table (not QuantityID)


3. Run the following query to update the CUL_DisplayText table:

USE ION_Network
INSERT INTO CUL_DisplayText (ResourceTypeID, ResourceID, Display) values (2, 'Unit=testunit', 'testunit')


Here is a before and after of how the units appear in an example Period over Period report:

Summary graphs
For PME7.0.1 / PME7.2.2 / PME8.x

EXECUTE [ION_Network].[dbo].[spTS_StandardRelationship_Add] N'Cstm Meas', N'unit', N'testunit', 'Q'

If Cstm Meas is already associated with a unit, refer to FA279856 as how to assign a new unit to Cstm Meas.

施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings