{}
root
root
root
0
True
False
False
344d4f4e815b7336659647486f365324
数据模型快速计算
产品信息
root
SELF_QUERY
MODEL_VIEW
0
True
True
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.HIERARCHY_TIME-1624586651117-订单年份
OrderDate_Year2
订单年份
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
STRING
0
False
False
True
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.HIERARCHY_TIME-1624586651117-订单年月
OrderDate_Month2
订单年月
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
STRING
0
False
False
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.FOLDER_1638934389355-销售额
销售额_1624531356707
销售额
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
DOUBLE
0
False
False
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.FOLDER_1638934389355-销售额-PREV_VALUE
销售额_1624531356707
销售额(前期值)
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
DOUBLE
0
False
False
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.FOLDER_1638934389355-销售额-PREV_VALUE_COMPARE
销售额_1624531356707
销售额(环比)
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
DOUBLE
0
False
False
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.FOLDER_1638934389355-销售额-GLOBAL_PERCENT_OF_TOTAL
销售额_1624531356707
销售额(全局占比)
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
DOUBLE
0
False
False
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.FOLDER_1638934389355-销售额-GROWTH_VALUE
销售额_1624531356707
销售额(累计值)
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
DOUBLE
0
False
False
False
SELF_QUERY_FIELD.344d4f4e815b7336659647486f365324.FOLDER_1638934389355-销售额-GLOBAL_RANK_DESC
销售额_1624531356707
销售额(全局降序排名)
344d4f4e815b7336659647486f365324
SELF_QUERY_FIELD
DOUBLE
0
False
False
False
]]]]>]]>{\"autoCache\":\"\"}]]]]>{\"gridProp\":{\"fieldProps\":{\"BizViewOutField.I8aaa805f017a3aff3aff6805017a3d6e3dc03e03.I8aaa805f017a3aff3aff6805017a3d6ec66d3e25\":{\"width\":105,\"align\":\"RIGHT\"},\"BizViewOutField.I8aaa805f017a3aff3aff6805017a3d6e3dc03e03.I8aaa805f017a3aff3aff6805017a3d6ec96c3e58\":{\"width\":105,\"align\":\"RIGHT\"},\"BizViewOutField.I8aaa805f017a3aff3aff6805017a3d6e3dc03e03.I8aaa805f017a3aff3aff6805017a3d6ecbef3e79\":{\"width\":105,\"align\":\"RIGHT\"},\"BizViewOutField.I8aaa805f017a3aff3aff6805017a3d6e3dc03e03.I8aaa805f017a3aff3aff6805017a3d6ecea93eac\":{\"width\":105,\"align\":\"RIGHT\"},\"BizViewOutField.I8aaa805f017a3aff3aff6805017a3d6e3dc03e03.I8aaa805f017a3aff3aff6805017a3d6ed1103ecd\":{\"width\":105,\"align\":\"RIGHT\"},\"BizViewOutField.I8aaa805f017a3aff3aff6805017a3d6e3dc03e03.I8aaa805f017a3aff3aff6805017a3d709ce03f04\":{\"width\":105,\"align\":\"RIGHT\"}},\"queryViewBackgroundColor\":\"#FFFFFF\",\"bgColor\":\"#FBFCFC\",\"gridBorderColor\":\"#E4E8EA\",\"headerBackgroundColor\":\"#EBEEF0\",\"rowHeaderBackgroundColor\":\"#F3F4F6\",\"headerFontSize\":\"12\",\"headerFontStyle\":\"bold\",\"headerFontColor\":\"#333333\",\"rowHeaderFontColor\":\"#333333\",\"spColor\":\"#F2F5F5\",\"selectedBgColor\":\"#E2E6E9\",\"gridDataFontColor\":\"#333333\",\"fontSize\":\"12\",\"mergeZ\":false,\"mergeH\":false,\"mergeMaxCol\":1,\"useSystemDefaultValue\":true,\"defaultRow\":false},\"header\":\"\",\"tail\":\"\",\"displayheader\":\"\"}]]]]>","dbType":"MYSQL","availableDirect":true,"tables":["TAB.northwind.null.orderdetails"],"attrFields":{}},"extractSetting":{"clusterSetting":null,"type":"FULL","clearBeforeExtract":true,"failHandler":{"failModel":"STOP"},"incremental":{"currentDay":false,"type":null,"rows":null,"parameters":null,"settings":{"reExtract":null,"reExtractTimeUnit":null}},"orderSettings":null,"parameters":[]},"fields":[{"id":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.OrderID","name":"OrderID","alias":"订单编号","desc":"OrderID","valueType":"INTEGER","dataFormat":"<整型-默认值>","sqlColumnName":"F8","viewId":null,"resType":null},{"id":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.ProductID","name":"ProductID","alias":"产品编号","desc":"ProductID","valueType":"INTEGER","dataFormat":"<整型-默认值>","sqlColumnName":"F9","viewId":null,"resType":null},{"id":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.UnitPrice","name":"UnitPrice","alias":"单价","desc":"UnitPrice","valueType":"DOUBLE","dataFormat":"<浮点型-默认值>","sqlColumnName":"F10","viewId":null,"resType":null},{"id":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.Quantity","name":"Quantity","alias":"数量","desc":"Quantity","valueType":"INTEGER","dataFormat":"<整型-默认值>","sqlColumnName":"F11","viewId":null,"resType":null},{"id":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.Discount","name":"Discount","alias":"折扣","desc":"Discount","valueType":"DOUBLE","dataFormat":"<浮点型-默认值>","sqlColumnName":"F12","viewId":null,"resType":null},{"id":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.销售额","name":"销售额","alias":"销售额","desc":"","valueType":"DOUBLE","dataFormat":"<浮点型-默认值>","sqlColumnName":"F13","viewId":null,"resType":null}],"parameters":[],"dataSource":"DS.northwind","extractStatus":null,"enable":true},{"id":"01e7b1f1e94dd7ba2505949466a9b2a3","name":"employees","alias":"雇员表","desc":"","type":"BASIC_TABLE","storeType":"DIRECT","define":{"dbtype":"MYSQL","dataSource":"DS.northwind","catalog":null,"schema":"null","tableId":"TAB.northwind.null.employees","tableName":"employees","_dataSource":{"id":"TAB-northwind-null-null-employees","originId":"TAB.northwind.null.employees","catalog":null,"schema":"null","name":"employees","alias":"雇员表","desc":"","dataType":"BASETABLE","dataSource":{"id":"DS.northwind","name":"northwind","alias":"BIDemo","desc":"","type":{"name":"MYSQL","prop":""},"extended":"{\"disable\":false}","url":"jdbc:mysql://localhost:6688/northwind?useOldAliasMetadataBehavior=true&useUnicode=true&characterEncoding=GBK","driver":"com.mysql.jdbc.Driver","user":"admin","identifierQuoteString":"`","catalog":null,"schema":null,"extendProp":"{\"allowExcelImport\":true,\"applyToSmartbixDataset\":false,\"catalogType\":\"ProductBuiltIn\"}","dbCharset":"","dbToCharset":"","dbtype":"MYSQL"},"providerName":null,"prefix":"TAB","extended":"","fields":null,"filters":null,"businessTableId":null,"treeType":"table","leaf":true}},"extractSetting":{"clusterSetting":null,"type":"FULL","clearBeforeExtract":true,"failHandler":{"failModel":"STOP"},"incremental":{"currentDay":false,"type":null,"rows":null,"parameters":null,"settings":{"reExtract":null,"reExtractTimeUnit":null}},"orderSettings":null,"parameters":[]},"fields":[{"id":"Field-northwind-null-null-employees-FullName","name":"FullName","alias":"FullName","desc":"FullName","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-EmployeeID","name":"EmployeeID","alias":"雇员编号","desc":"EmployeeID","valueType":"INTEGER","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Age","name":"Age","alias":"Age","desc":"Age","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-LastName","name":"LastName","alias":"LastName","desc":"LastName","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-FirstName","name":"FirstName","alias":"FirstName","desc":"FirstName","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-gender","name":"gender","alias":"gender","desc":"gender","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Title","name":"Title","alias":"Title","desc":"Title","valueType":"INTEGER","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-TitleOfCourtesy","name":"TitleOfCourtesy","alias":"TitleOfCourtesy","desc":"TitleOfCourtesy","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-BirthDate","name":"BirthDate","alias":"BirthDate","desc":"BirthDate","valueType":"DATETIME","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-HireDate","name":"HireDate","alias":"HireDate","desc":"HireDate","valueType":"DATETIME","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Address","name":"Address","alias":"Address","desc":"Address","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-City","name":"City","alias":"City","desc":"City","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Region","name":"Region","alias":"Region","desc":"Region","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-PostalCode","name":"PostalCode","alias":"PostalCode","desc":"PostalCode","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Country","name":"Country","alias":"Country","desc":"Country","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-HomePhone","name":"HomePhone","alias":"HomePhone","desc":"HomePhone","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Extension","name":"Extension","alias":"Extension","desc":"Extension","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Photo","name":"Photo","alias":"Photo","desc":"Photo","valueType":"BINARY","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Notes","name":"Notes","alias":"Notes","desc":"Notes","valueType":"ASCII","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-ReportsTo","name":"ReportsTo","alias":"ReportsTo","desc":"ReportsTo","valueType":"INTEGER","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Sex","name":"Sex","alias":"Sex","desc":"Sex","valueType":"INTEGER","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-EducationalLevel","name":"EducationalLevel","alias":"EducationalLevel","desc":"EducationalLevel","valueType":"INTEGER","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-EMail","name":"EMail","alias":"EMail","desc":"EMail","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-HomePage","name":"HomePage","alias":"HomePage","desc":"HomePage","valueType":"STRING","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null},{"id":"Field-northwind-null-null-employees-Goal","name":"Goal","alias":"Goal","desc":"Goal","valueType":"INTEGER","dataFormat":null,"sqlColumnName":null,"viewId":null,"resType":null}],"parameters":[],"dataSource":"DS.northwind","extractStatus":null,"enable":true}],"parameters":[],"relationGraph":{"relations":[{"srcViewId":"4d66f2ed2da1d02edbcdffecf9d727f9","destViewId":"30f5dab0033dbed9b19940f6eaa05819","fieldRelations":[{"srcFieldId":"Field-northwind-null-null-categories-CategoryID","destFieldId":"Field-northwind-null-null-products-CategoryID"}],"linkType":"RIGHTJOIN","srcViewBO":null,"destViewBO":null},{"srcViewId":"bf2426d49bb9eaaa09656eef81159077","destViewId":"24edc77d3862167fe7e9d5eeb3283e4c","fieldRelations":[{"srcFieldId":"Field-northwind-null-null-orders-CustomerID","destFieldId":"Field-northwind-null-null-customers-CustomerID"}],"linkType":"LEFTJOIN","srcViewBO":null,"destViewBO":null},{"srcViewId":"bf2426d49bb9eaaa09656eef81159077","destViewId":"8ad67ad48dfb5b71d03e92a84d06c361","fieldRelations":[{"srcFieldId":"Field-northwind-null-null-orders-OrderID","destFieldId":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.OrderID"}],"linkType":"RIGHTJOIN","srcViewBO":null,"destViewBO":null},{"srcViewId":"8ad67ad48dfb5b71d03e92a84d06c361","destViewId":"30f5dab0033dbed9b19940f6eaa05819","fieldRelations":[{"srcFieldId":"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.ProductID","destFieldId":"Field-northwind-null-null-products-ProductID"}],"linkType":"LEFTJOIN","srcViewBO":null,"destViewBO":null},{"srcViewId":"bf2426d49bb9eaaa09656eef81159077","destViewId":"01e7b1f1e94dd7ba2505949466a9b2a3","fieldRelations":[{"srcFieldId":"Field-northwind-null-null-orders-EmployeeID","destFieldId":"Field-northwind-null-null-employees-EmployeeID"}],"linkType":"LEFTJOIN","srcViewBO":null,"destViewBO":null}],"positions":[{"viewId":"30f5dab0033dbed9b19940f6eaa05819","x":640,"y":40,"width":160,"height":28},{"viewId":"bf2426d49bb9eaaa09656eef81159077","x":87,"y":40,"width":160,"height":28},{"viewId":"4d66f2ed2da1d02edbcdffecf9d727f9","x":871,"y":40,"width":160,"height":28},{"viewId":"24edc77d3862167fe7e9d5eeb3283e4c","x":86,"y":160,"width":160,"height":28},{"viewId":"8ad67ad48dfb5b71d03e92a84d06c361","x":340,"y":40,"width":160,"height":28},{"viewId":"01e7b1f1e94dd7ba2505949466a9b2a3","x":351,"y":160,"width":160,"height":28}],"layouts":[],"activeLayout":"0"},"cacheSetting":{"cacheable":true,"expirePolicy":null}}]]>ParallelPeriodEn(GoalDateLevel,Index,Metric )
参数说明:
GoalDateLevel: 时间层次
Index: 一个整数,从日期列中添加或减去的时间间隔数
Metric:度量指标
示例:
今年是2021年,求上年同期销量
ParallelPeriodEn(年,1,销售额)'年'是年时间层次,1是代表上一年,如要取前二年则填2,'销售额'可以是基础度量指标,也可以是计算度量
\",\"summary\":\"ParallelPeriodEn(GoalDateLevel, Index, Metric)\",\"hint\":\"ParallelPeriodEn(GoalDateLevel, Index, Metric)\",\"functionType\":\"METHOD\",\"tooltipKeys\":[\"hint\",\"introduction\"]},{\"id\":\"(\",\"label\":\"(\",\"type\":\"lparen\"},{\"id\":\"Field-northwind-null-null-orders-OrderDate-OrderDate_Month-LEVEL-1624586651119\",\"alias\":\"订单年月\",\"name\":\"OrderDate_Month2\",\"type\":\"LEVEL\",\"uniqueName\":\"[custom-OrderDate].[OrderDate_Month2]\",\"path\":\"/维度/订单日期时间维/订单年月\",\"label\":\"[订单年月]\",\"tooltipKeys\":[\"name\",\"path\"]},{\"id\":\"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.Quantity_1624531354440\",\"alias\":\"销售量\",\"name\":\"Quantity2_1624531354440\",\"type\":\"MEASURE\",\"uniqueName\":\"[Measures].[Quantity2_1624531354440]\",\"path\":\"/度量/订单明细/销售量\",\"label\":\"[销售量]\",\"tooltipKeys\":[\"name\",\"path\"]},{\"id\":\")\",\"label\":\")\",\"type\":\"rparen\"}]"}}}]]>ParallelPeriodEn(GoalDateLevel,Index,Metric )
参数说明:
GoalDateLevel: 时间层次
Index: 一个整数,从日期列中添加或减去的时间间隔数
Metric:度量指标
示例:
今年是2021年,求上年同期销量
ParallelPeriodEn(年,1,销售额)'年'是年时间层次,1是代表上一年,如要取前二年则填2,'销售额'可以是基础度量指标,也可以是计算度量
\",\"summary\":\"ParallelPeriodEn(GoalDateLevel, Index, Metric)\",\"hint\":\"ParallelPeriodEn(GoalDateLevel, Index, Metric)\",\"functionType\":\"METHOD\",\"tooltipKeys\":[\"hint\",\"introduction\"]},{\"id\":\"(\",\"label\":\"(\",\"type\":\"lparen\"},{\"id\":\"Field-northwind-null-null-orders-OrderDate-OrderDate_Month-LEVEL-1624586651119\",\"alias\":\"订单年月\",\"name\":\"OrderDate_Month2\",\"type\":\"LEVEL\",\"uniqueName\":\"[custom-OrderDate].[OrderDate_Month2]\",\"path\":\"/维度/订单日期时间维/订单年月\",\"label\":\"[订单年月]\",\"tooltipKeys\":[\"name\",\"path\"]},{\"id\":\"COMBINEDFIELD.8ad67ad48dfb5b71d03e92a84d06c361.Quantity_1624531354440\",\"alias\":\"销售量\",\"name\":\"Quantity2_1624531354440\",\"type\":\"MEASURE\",\"uniqueName\":\"[Measures].[Quantity2_1624531354440]\",\"path\":\"/度量/订单明细/销售量\",\"label\":\"[销售量]\",\"tooltipKeys\":[\"name\",\"path\"]},{\"id\":\")\",\"label\":\")\",\"type\":\"rparen\"}]"}},"explain":{"success":true,"measures":["COMBINEDQUERY"],"refNames":["[Measures].[Quantity2_1624531354440]","[Measures].[_Quantity2_1624531354440]"]}}]]>