Thank You @Florian Pfeffer
It worked....![]()
One more thing, I ma trying to use this value on a BulletChart of Sapui5 App. Here is the code, can you tell me what's wrong here
var model = new sap.ui.model.json.JSONModel("../services/total.xsjs", false); sap.ui.getCore().setModel(mode,"total"); var oConfBCData = { thresholds: [ { value: 0, color: sap.suite.ui.commons.InfoTileValueColor.Good }, { value: 15000, color: sap.suite.ui.commons.InfoTileValueColor.Good }, { value: 30000, color: sap.suite.ui.commons.InfoTileValueColor.Good }, { value: 45000, color: sap.suite.ui.commons.InfoTileValueColor.Good }, { value: 60000, color: sap.suite.ui.commons.InfoTileValueColor.Error }, { value: 75000, color: sap.suite.ui.commons.InfoTileValueColor.Error } ], }; var oConfModel = new sap.ui.model.json.JSONModel(); oConfModel.setData(oConfBCData); sap.ui.getCore().setModel(oConfModel); var oBCDataTmpl = new sap.suite.ui.commons.BulletChartData({ value: "{value}", color: "{color}" }); var oBCTmpl = new sap.suite.ui.commons.BulletChart({ size: sap.suite.ui.commons.InfoTileSize.Auto, scale: "INR", actual: { value: "{total>/records/value}", color: sap.suite.ui.commons.InfoTileValueColor.Error}, //forecastValue: 110, targetValue: 60000, thresholds: { template: oBCDataTmpl, path: "/thresholds" }, showActualValue: true, showTargetValue: true, showDeltaValue: true, showValueMarker: false, mode: sap.suite.ui.commons.BulletChartMode.Actual });Please Help