pbi-county-2026调整
This commit is contained in:
@@ -6,6 +6,6 @@
|
|||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"version": "2.0",
|
"version": "2.0",
|
||||||
"logicalId": "16c8aecb-2392-49dd-abb3-57f1bb0875bc"
|
"logicalId": "8102f22c-a7eb-4739-8667-e248bc97948d"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.8.0/schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.9.0/schema.json",
|
||||||
"name": "3b74165e00a96ee65040",
|
"name": "3b74165e00a96ee65040",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 689.90114483443222,
|
"x": 691.19065493323455,
|
||||||
"y": 3.9287626217140428,
|
"y": 7.5697363545567313,
|
||||||
"z": 1000,
|
"z": 1000,
|
||||||
"height": 34.21000981354269,
|
"height": 34.21000981354269,
|
||||||
"width": 235.15927141937871,
|
"width": 235.15927141937871,
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.8.0/schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.9.0/schema.json",
|
||||||
"name": "5f97f14aa88e82ac7f55",
|
"name": "5f97f14aa88e82ac7f55",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 1500,
|
"z": 1500,
|
||||||
"height": 43.16916488222698,
|
"height": 47.331189710610929,
|
||||||
"width": 703.04068522483942,
|
"width": 671.89710610932468,
|
||||||
"tabOrder": 9000
|
"tabOrder": 9000
|
||||||
},
|
},
|
||||||
"visual": {
|
"visual": {
|
||||||
@@ -23,31 +23,14 @@
|
|||||||
"Entity": "Dim_RegionType"
|
"Entity": "Dim_RegionType"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Property": "region_name"
|
"Property": "REGION_TYPE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"queryRef": "Dim_RegionType.region_name",
|
"queryRef": "Dim_RegionType.REGION_TYPE",
|
||||||
"nativeQueryRef": "region_name"
|
"nativeQueryRef": "REGION_TYPE"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"sortDefinition": {
|
|
||||||
"sort": [
|
|
||||||
{
|
|
||||||
"field": {
|
|
||||||
"Column": {
|
|
||||||
"Expression": {
|
|
||||||
"SourceRef": {
|
|
||||||
"Entity": "Dim_GeoGroup"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Property": "PROVINCE_C"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"direction": "Descending"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"objects": {
|
"objects": {
|
||||||
@@ -107,6 +90,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"showBlankAs": {
|
||||||
|
"expr": {
|
||||||
|
"Literal": {
|
||||||
|
"Value": "''"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"selector": {
|
"selector": {
|
||||||
@@ -260,6 +250,22 @@
|
|||||||
"id": "selection:selected"
|
"id": "selection:selected"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"image": [
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"show": {
|
||||||
|
"expr": {
|
||||||
|
"Literal": {
|
||||||
|
"Value": "false"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"id": "default"
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"visualContainerObjects": {
|
"visualContainerObjects": {
|
||||||
@@ -365,6 +371,78 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"howCreated": "User"
|
"howCreated": "User"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "f7ea241f7e9900d5787f",
|
||||||
|
"field": {
|
||||||
|
"Column": {
|
||||||
|
"Expression": {
|
||||||
|
"SourceRef": {
|
||||||
|
"Entity": "Dim_RegionType"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Property": "REGION_TYPE"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "Categorical",
|
||||||
|
"filter": {
|
||||||
|
"Version": 2,
|
||||||
|
"From": [
|
||||||
|
{
|
||||||
|
"Name": "d",
|
||||||
|
"Entity": "Dim_RegionType",
|
||||||
|
"Type": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Where": [
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"Not": {
|
||||||
|
"Expression": {
|
||||||
|
"In": {
|
||||||
|
"Expressions": [
|
||||||
|
{
|
||||||
|
"Column": {
|
||||||
|
"Expression": {
|
||||||
|
"SourceRef": {
|
||||||
|
"Source": "d"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Property": "REGION_TYPE"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Values": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Literal": {
|
||||||
|
"Value": "null"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"objects": {
|
||||||
|
"general": [
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"isInvertedSelectionMode": {
|
||||||
|
"expr": {
|
||||||
|
"Literal": {
|
||||||
|
"Value": "true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.8.0/schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.9.0/schema.json",
|
||||||
"name": "628ab9479c857792d017",
|
"name": "628ab9479c857792d017",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 940.19041988716822,
|
"x": 941.47992998597056,
|
||||||
"y": 4.6292002353929211,
|
"y": 8.27017396823561,
|
||||||
"z": 0,
|
"z": 0,
|
||||||
"height": 33.098159509202453,
|
"height": 33.098159509202453,
|
||||||
"width": 210.31678555332448,
|
"width": 210.31678555332448,
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.7.0/schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.9.0/schema.json",
|
||||||
"name": "df26ee22e300ab6a543d",
|
"name": "df26ee22e300ab6a543d",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 732.22006728677979,
|
"x": 730.93055718797746,
|
||||||
"y": 5.0330421054108569,
|
"y": 1.392068372568168,
|
||||||
"z": 14125,
|
"z": 14125,
|
||||||
"height": 43.16916488222698,
|
"height": 47.331189710610929,
|
||||||
"width": 1150.5072054404927,
|
"width": 1151.7967155392951,
|
||||||
"tabOrder": 8000
|
"tabOrder": 8000
|
||||||
},
|
},
|
||||||
"visualGroup": {
|
"visualGroup": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.8.0/schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.9.0/schema.json",
|
||||||
"name": "e540378da57667468e92",
|
"name": "e540378da57667468e92",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 0,
|
"x": 0,
|
||||||
@@ -4796,7 +4796,7 @@
|
|||||||
"autoSizeColumnWidth": {
|
"autoSizeColumnWidth": {
|
||||||
"expr": {
|
"expr": {
|
||||||
"Literal": {
|
"Literal": {
|
||||||
"Value": "false"
|
"Value": "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"version": "2.0",
|
"version": "2.0",
|
||||||
"logicalId": "e651f9f7-6c0e-468b-b3e6-610ef7960ab4"
|
"logicalId": "b806f352-cf54-4854-b2d7-6c956de0b139"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16087,29 +16087,6 @@ cultureInfo zh-CN
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dim_region_type.region_type": {
|
|
||||||
"Definition": {
|
|
||||||
"Binding": {
|
|
||||||
"ConceptualEntity": "Dim_RegionType",
|
|
||||||
"ConceptualProperty": "REGION_TYPE"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"State": "Generated",
|
|
||||||
"Terms": [
|
|
||||||
{
|
|
||||||
"region type": {
|
|
||||||
"State": "Generated"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"REGION_TYPE": {
|
|
||||||
"Type": "Noun",
|
|
||||||
"State": "Generated",
|
|
||||||
"Weight": 0.99
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dim_brand_default_MKT": {
|
"dim_brand_default_MKT": {
|
||||||
"Definition": {
|
"Definition": {
|
||||||
"Binding": {
|
"Binding": {
|
||||||
@@ -27484,29 +27461,6 @@ cultureInfo zh-CN
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dim_region_type.region_name": {
|
|
||||||
"Definition": {
|
|
||||||
"Binding": {
|
|
||||||
"ConceptualEntity": "Dim_RegionType",
|
|
||||||
"ConceptualProperty": "region_name"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"State": "Generated",
|
|
||||||
"Terms": [
|
|
||||||
{
|
|
||||||
"region name": {
|
|
||||||
"State": "Generated"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"region_name": {
|
|
||||||
"Type": "Noun",
|
|
||||||
"State": "Generated",
|
|
||||||
"Weight": 0.99
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dm_td_chpa_market_definition": {
|
"dm_td_chpa_market_definition": {
|
||||||
"Definition": {
|
"Definition": {
|
||||||
"Binding": {
|
"Binding": {
|
||||||
@@ -32360,75 +32314,6 @@ cultureInfo zh-CN
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dim_geo_group.province_group_catagory": {
|
|
||||||
"Definition": {
|
|
||||||
"Binding": {
|
|
||||||
"ConceptualEntity": "Dim_GeoGroup",
|
|
||||||
"ConceptualProperty": "PROVINCE_GROUP_CATAGORY"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"State": "Generated",
|
|
||||||
"Terms": [
|
|
||||||
{
|
|
||||||
"province group catagory": {
|
|
||||||
"State": "Generated"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"PROVINCE_GROUP_CATAGORY": {
|
|
||||||
"Type": "Noun",
|
|
||||||
"State": "Generated",
|
|
||||||
"Weight": 0.99
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dim_region_type.is_hidden_county": {
|
|
||||||
"Definition": {
|
|
||||||
"Binding": {
|
|
||||||
"ConceptualEntity": "Dim_RegionType",
|
|
||||||
"ConceptualProperty": "IS_HIDDEN_COUNTY"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"State": "Generated",
|
|
||||||
"Terms": [
|
|
||||||
{
|
|
||||||
"is hidden county": {
|
|
||||||
"State": "Generated"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IS_HIDDEN_COUNTY": {
|
|
||||||
"Type": "Noun",
|
|
||||||
"State": "Generated",
|
|
||||||
"Weight": 0.99
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dim_market.is_hidden_county": {
|
|
||||||
"Definition": {
|
|
||||||
"Binding": {
|
|
||||||
"ConceptualEntity": "Dim_Market",
|
|
||||||
"ConceptualProperty": "IS_HIDDEN_COUNTY"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"State": "Generated",
|
|
||||||
"Terms": [
|
|
||||||
{
|
|
||||||
"is hidden county": {
|
|
||||||
"State": "Generated"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IS_HIDDEN_COUNTY": {
|
|
||||||
"Type": "Noun",
|
|
||||||
"State": "Generated",
|
|
||||||
"Weight": 0.99
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"fact_sale.mergedata_flag": {
|
"fact_sale.mergedata_flag": {
|
||||||
"Definition": {
|
"Definition": {
|
||||||
"Binding": {
|
"Binding": {
|
||||||
@@ -32475,29 +32360,6 @@ cultureInfo zh-CN
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dim_brand_MKT.is_hidden_county": {
|
|
||||||
"Definition": {
|
|
||||||
"Binding": {
|
|
||||||
"ConceptualEntity": "Dim_BrandMKT",
|
|
||||||
"ConceptualProperty": "IS_HIDDEN_COUNTY"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"State": "Generated",
|
|
||||||
"Terms": [
|
|
||||||
{
|
|
||||||
"is hidden county": {
|
|
||||||
"State": "Generated"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IS_HIDDEN_COUNTY": {
|
|
||||||
"Type": "Noun",
|
|
||||||
"State": "Generated",
|
|
||||||
"Weight": 0.99
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dim_calendar.YM_flag": {
|
"dim_calendar.YM_flag": {
|
||||||
"Definition": {
|
"Definition": {
|
||||||
"Binding": {
|
"Binding": {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ expression limit = "10" meta [IsParameterQuery=true, Type="Text", IsParameterQue
|
|||||||
annotation PBI_ResultType = Text
|
annotation PBI_ResultType = Text
|
||||||
|
|
||||||
/// 切换数据源Http路径使用
|
/// 切换数据源Http路径使用
|
||||||
expression HttpPath = "sql/protocolv1/o/4124350841043461/0410-074134-do66802w" meta [IsParameterQuery=true, List={"sql/protocolv1/o/1064580724995799/1118-074021-486fqthp", "sql/protocolv1/o/4124350841043461/0410-074134-do66802w"}, DefaultValue="sql/protocolv1/o/1064580724995799/1118-074021-486fqthp", Type="Text", IsParameterQueryRequired=true]
|
expression HttpPath = "sql/protocolv1/o/1064580724995799/1118-074021-486fqthp" meta [IsParameterQuery=true, List={"sql/protocolv1/o/1064580724995799/1118-074021-486fqthp", "sql/protocolv1/o/4124350841043461/0410-074134-do66802w"}, DefaultValue="sql/protocolv1/o/1064580724995799/1118-074021-486fqthp", Type="Text", IsParameterQueryRequired=true]
|
||||||
lineageTag: 9c59df5e-b5dc-4259-a64d-7ae346dcb3e7
|
lineageTag: 9c59df5e-b5dc-4259-a64d-7ae346dcb3e7
|
||||||
queryGroup: 参数
|
queryGroup: 参数
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ expression HttpPath = "sql/protocolv1/o/4124350841043461/0410-074134-do66802w" m
|
|||||||
annotation PBI_NavigationStepName = Navigation
|
annotation PBI_NavigationStepName = Navigation
|
||||||
|
|
||||||
/// 切换数据目录使用
|
/// 切换数据目录使用
|
||||||
expression CatalogName = "catalog_e2_ngbi_prd" meta [IsParameterQuery=true, List={"catalog_e2_ngbi_qas", "catalog_e2_ngbi_prd"}, DefaultValue="catalog_e2_ngbi_prd", Type="Text", IsParameterQueryRequired=true]
|
expression CatalogName = "catalog_e2_ngbi_qas" meta [IsParameterQuery=true, List={"catalog_e2_ngbi_qas", "catalog_e2_ngbi_prd"}, DefaultValue="catalog_e2_ngbi_prd", Type="Text", IsParameterQueryRequired=true]
|
||||||
lineageTag: f262d2bb-985d-406a-aacb-2c1d5b1430ac
|
lineageTag: f262d2bb-985d-406a-aacb-2c1d5b1430ac
|
||||||
queryGroup: 参数
|
queryGroup: 参数
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ expression CatalogName = "catalog_e2_ngbi_prd" meta [IsParameterQuery=true, List
|
|||||||
annotation PBI_NavigationStepName = Navigation
|
annotation PBI_NavigationStepName = Navigation
|
||||||
|
|
||||||
/// 切换服务器主机地址使用
|
/// 切换服务器主机地址使用
|
||||||
expression ServerAddress = "adb-4124350841043461.1.databricks.azure.cn" meta [IsParameterQuery=true, List={"adb-1064580724995799.3.databricks.azure.cn", "adb-4124350841043461.1.databricks.azure.cn"}, DefaultValue="adb-1064580724995799.3.databricks.azure.cn", Type="Text", IsParameterQueryRequired=true]
|
expression ServerAddress = "adb-1064580724995799.3.databricks.azure.cn" meta [IsParameterQuery=true, List={"adb-1064580724995799.3.databricks.azure.cn", "adb-4124350841043461.1.databricks.azure.cn"}, DefaultValue="adb-1064580724995799.3.databricks.azure.cn", Type="Text", IsParameterQueryRequired=true]
|
||||||
lineageTag: 08b2d8cc-13df-48c6-970c-d788d6b1da4f
|
lineageTag: 08b2d8cc-13df-48c6-970c-d788d6b1da4f
|
||||||
queryGroup: 参数
|
queryGroup: 参数
|
||||||
|
|
||||||
|
|||||||
@@ -99,11 +99,6 @@ relationship 3b22ccf1-310c-abb2-c667-ce35f3302afa
|
|||||||
fromColumn: Fact_EC.PLATFORM_TYPE_SOURCE
|
fromColumn: Fact_EC.PLATFORM_TYPE_SOURCE
|
||||||
toColumn: Dim_PlatformMID.PLATFORM_TYPE_SOURCE
|
toColumn: Dim_PlatformMID.PLATFORM_TYPE_SOURCE
|
||||||
|
|
||||||
relationship 2e91292f-ad43-9957-8b21-359df82e3e77
|
|
||||||
toCardinality: many
|
|
||||||
fromColumn: Fact_Sales_Total.REGION_TYPE
|
|
||||||
toColumn: Dim_RegionType.REGION_TYPE
|
|
||||||
|
|
||||||
relationship 180235a4-7288-6615-7b0e-62ab25528bd7
|
relationship 180235a4-7288-6615-7b0e-62ab25528bd7
|
||||||
toCardinality: many
|
toCardinality: many
|
||||||
fromColumn: Dim_Geo.AUDIT_KEY
|
fromColumn: Dim_Geo.AUDIT_KEY
|
||||||
@@ -288,12 +283,6 @@ relationship 2724b646-60c1-d1d3-0343-6ffbe6c685cb
|
|||||||
fromColumn: Fact_Retail_RawData.DATA_SOURCE
|
fromColumn: Fact_Retail_RawData.DATA_SOURCE
|
||||||
toColumn: Dim_DataSource_ForRLS.DATA_SOURCE
|
toColumn: Dim_DataSource_ForRLS.DATA_SOURCE
|
||||||
|
|
||||||
relationship 73477bd1-8615-2d4f-4a3d-99b57f53e812
|
|
||||||
isActive: false
|
|
||||||
toCardinality: many
|
|
||||||
fromColumn: Dim_BrandMKT.IS_HIDDEN_COUNTY
|
|
||||||
toColumn: Dim_RegionType.IS_HIDDEN_COUNTY
|
|
||||||
|
|
||||||
relationship e369a4e6-11ea-c7ed-9f2d-ea5ed1f6316b
|
relationship e369a4e6-11ea-c7ed-9f2d-ea5ed1f6316b
|
||||||
crossFilteringBehavior: bothDirections
|
crossFilteringBehavior: bothDirections
|
||||||
fromColumn: Dim_RC_Merged_Data.KEY
|
fromColumn: Dim_RC_Merged_Data.KEY
|
||||||
@@ -495,3 +484,7 @@ relationship fbe1a0c2-e9ac-7219-71fa-6efbdce5dda4
|
|||||||
fromColumn: Fact_Sales.STORE_NAME
|
fromColumn: Fact_Sales.STORE_NAME
|
||||||
toColumn: Dim_Store.STORE_NAME
|
toColumn: Dim_Store.STORE_NAME
|
||||||
|
|
||||||
|
relationship f30f6574-7413-c7c6-eef1-6db49a899c50
|
||||||
|
fromColumn: Fact_Sales_Total.REGION_TYPE
|
||||||
|
toColumn: Dim_RegionType.REGION_TYPE
|
||||||
|
|
||||||
|
|||||||
@@ -2835,10 +2835,7 @@ table 00_KPI
|
|||||||
lineageTag: 7c18d276-c27c-4a17-83a8-d4e197e51fc1
|
lineageTag: 7c18d276-c27c-4a17-83a8-d4e197e51fc1
|
||||||
|
|
||||||
measure 'ExternalTotal.VBP.LY.KPI' =
|
measure 'ExternalTotal.VBP.LY.KPI' =
|
||||||
CALCULATE (
|
[ExternalTotal.VBP.LY.MTH]
|
||||||
[ExternalTotal.VBP.LY.MTH],
|
|
||||||
USERELATIONSHIP ( Dim_RegionType[IS_HIDDEN_COUNTY], Dim_BrandMKT[IS_HIDDEN_COUNTY] )
|
|
||||||
)
|
|
||||||
---------------------------------KPI描述------------------------------------
|
---------------------------------KPI描述------------------------------------
|
||||||
------创建者:zhouxin
|
------创建者:zhouxin
|
||||||
------邮箱:kmls393@astrazeneca.net
|
------邮箱:kmls393@astrazeneca.net
|
||||||
@@ -2936,10 +2933,7 @@ table 00_KPI
|
|||||||
lineageTag: ef6a1c21-e215-4c04-ab99-6dfd275d246a
|
lineageTag: ef6a1c21-e215-4c04-ab99-6dfd275d246a
|
||||||
|
|
||||||
measure 'ExternalTotal.VBP.KPI' =
|
measure 'ExternalTotal.VBP.KPI' =
|
||||||
CALCULATE (
|
[ExternalTotal.VBP.MTH]
|
||||||
[ExternalTotal.VBP.MTH],
|
|
||||||
USERELATIONSHIP ( Dim_RegionType[IS_HIDDEN_COUNTY], Dim_BrandMKT[IS_HIDDEN_COUNTY] )
|
|
||||||
)
|
|
||||||
---------------------------------KPI描述------------------------------------
|
---------------------------------KPI描述------------------------------------
|
||||||
------创建者:zhouxin
|
------创建者:zhouxin
|
||||||
------邮箱:kmls393@astrazeneca.net
|
------邮箱:kmls393@astrazeneca.net
|
||||||
|
|||||||
@@ -212,15 +212,6 @@ table Dim_BrandMKT
|
|||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
annotation SummarizationSetBy = Automatic
|
||||||
|
|
||||||
column IS_HIDDEN_COUNTY
|
|
||||||
dataType: int64
|
|
||||||
formatString: 0
|
|
||||||
lineageTag: 8a2003c6-a56b-42e8-af70-f41f5e5908b3
|
|
||||||
summarizeBy: sum
|
|
||||||
sourceColumn: IS_HIDDEN_COUNTY
|
|
||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
|
||||||
|
|
||||||
column Definition
|
column Definition
|
||||||
dataType: string
|
dataType: string
|
||||||
lineageTag: 2885513c-6cc4-4b7b-8636-b21a05e89dad
|
lineageTag: 2885513c-6cc4-4b7b-8636-b21a05e89dad
|
||||||
@@ -265,11 +256,6 @@ table Dim_BrandMKT
|
|||||||
TA_RN,
|
TA_RN,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
B.PROD_DES_C BRAND_NAME_CN,
|
B.PROD_DES_C BRAND_NAME_CN,
|
||||||
CASE
|
|
||||||
WHEN TA_NAME = 'ONC' THEN 1
|
|
||||||
WHEN TA_NAME = 'RARE' THEN 2
|
|
||||||
ELSE 0
|
|
||||||
END AS IS_HIDDEN_COUNTY,
|
|
||||||
CONCAT(
|
CONCAT(
|
||||||
MARKET,
|
MARKET,
|
||||||
' (',
|
' (',
|
||||||
|
|||||||
@@ -74,15 +74,6 @@ table Dim_GeoGroup
|
|||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
annotation SummarizationSetBy = Automatic
|
||||||
|
|
||||||
column PROVINCE_GROUP_CATAGORY
|
|
||||||
dataType: int64
|
|
||||||
formatString: 0
|
|
||||||
lineageTag: f7d1d4c5-e998-4b63-a952-2cfd7fcd4515
|
|
||||||
summarizeBy: sum
|
|
||||||
sourceColumn: PROVINCE_GROUP_CATAGORY
|
|
||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
|
||||||
|
|
||||||
partition Dim_GeoGroup = m
|
partition Dim_GeoGroup = m
|
||||||
mode: import
|
mode: import
|
||||||
queryGroup: OLD\非首页
|
queryGroup: OLD\非首页
|
||||||
@@ -104,11 +95,7 @@ table Dim_GeoGroup
|
|||||||
DISTINCT DATA_SOURCE,
|
DISTINCT DATA_SOURCE,
|
||||||
AUDIT_COD,
|
AUDIT_COD,
|
||||||
REGION_TYPE,
|
REGION_TYPE,
|
||||||
PROVINCE_GROUP,
|
PROVINCE_GROUP
|
||||||
CASE WHEN PROVINCE_GROUP = 'BBU County' OR PROVINCE_GROUP = 'BBU_BU_COUNTY' THEN 1
|
|
||||||
WHEN PROVINCE_GROUP = 'OBU East5' OR PROVINCE_GROUP = 'OBU NonEast5' THEN 2
|
|
||||||
WHEN PROVINCE_GROUP = '全国' THEN 3
|
|
||||||
ELSE 4 END AS PROVINCE_GROUP_CATAGORY
|
|
||||||
FROM
|
FROM
|
||||||
DM.dm_td_external_geo_type
|
DM.dm_td_external_geo_type
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -57,15 +57,6 @@ table Dim_Market
|
|||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
annotation SummarizationSetBy = Automatic
|
||||||
|
|
||||||
column IS_HIDDEN_COUNTY
|
|
||||||
dataType: int64
|
|
||||||
formatString: 0
|
|
||||||
lineageTag: f991248d-5cae-4b11-8178-7d460f1fa073
|
|
||||||
summarizeBy: sum
|
|
||||||
sourceColumn: IS_HIDDEN_COUNTY
|
|
||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
|
||||||
|
|
||||||
column MERGED_DATA_MARKET
|
column MERGED_DATA_MARKET
|
||||||
dataType: int64
|
dataType: int64
|
||||||
formatString: 0
|
formatString: 0
|
||||||
@@ -132,11 +123,6 @@ table Dim_Market
|
|||||||
AND A.MARKET IN ('Respules Market', 'HTN Market') THEN 2
|
AND A.MARKET IN ('Respules Market', 'HTN Market') THEN 2
|
||||||
ELSE 0
|
ELSE 0
|
||||||
END AS MKT_FLAG,
|
END AS MKT_FLAG,
|
||||||
CASE
|
|
||||||
WHEN B.TA_MAP = 'RARE' THEN 1
|
|
||||||
WHEN B.TA_MAP = 'ONCO' THEN 2
|
|
||||||
ELSE 0
|
|
||||||
END AS IS_HIDDEN_COUNTY,
|
|
||||||
CASE WHEN C.MARKET IS NOT NULL THEN 1 ELSE 0 END AS MERGED_DATA_MARKET
|
CASE WHEN C.MARKET IS NOT NULL THEN 1 ELSE 0 END AS MERGED_DATA_MARKET
|
||||||
FROM DM.dm_td_ext_unionall_market A
|
FROM DM.dm_td_ext_unionall_market A
|
||||||
LEFT JOIN COUNTY_MARKET B ON A.MARKET = B.MARKET
|
LEFT JOIN COUNTY_MARKET B ON A.MARKET = B.MARKET
|
||||||
@@ -152,7 +138,7 @@ table Dim_Market
|
|||||||
Source
|
Source
|
||||||
```
|
```
|
||||||
|
|
||||||
annotation PBI_ResultType = Exception
|
annotation PBI_ResultType = Table
|
||||||
|
|
||||||
annotation PBI_NavigationStepName = Navigation
|
annotation PBI_NavigationStepName = Navigation
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ table Dim_RegionType
|
|||||||
|
|
||||||
column REGION_TYPE
|
column REGION_TYPE
|
||||||
dataType: string
|
dataType: string
|
||||||
lineageTag: 8ed78a9a-bf64-495b-bfe8-39e8a5d4b77a
|
lineageTag: b57a0378-d343-4cc0-82c6-f0bc06dc5f6d
|
||||||
summarizeBy: none
|
summarizeBy: none
|
||||||
sourceColumn: REGION_TYPE
|
sourceColumn: REGION_TYPE
|
||||||
|
|
||||||
@@ -11,70 +11,21 @@ table Dim_RegionType
|
|||||||
|
|
||||||
column region_name
|
column region_name
|
||||||
dataType: string
|
dataType: string
|
||||||
lineageTag: a2623e17-4eca-4108-9086-31e65141735d
|
lineageTag: 5e1e77ff-108a-44c1-9fea-5c21ff027469
|
||||||
summarizeBy: none
|
summarizeBy: none
|
||||||
sourceColumn: region_name
|
sourceColumn: region_name
|
||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
annotation SummarizationSetBy = Automatic
|
||||||
|
|
||||||
column IS_HIDDEN_COUNTY
|
|
||||||
dataType: string
|
|
||||||
lineageTag: a6fe8b2d-feec-4282-9b75-4f0276a8bb58
|
|
||||||
summarizeBy: none
|
|
||||||
sourceColumn: IS_HIDDEN_COUNTY
|
|
||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
|
||||||
|
|
||||||
partition Dim_RegionType = m
|
partition Dim_RegionType = m
|
||||||
mode: import
|
mode: import
|
||||||
queryGroup: OLD\首页
|
queryGroup: OLD\首页
|
||||||
source = ```
|
source =
|
||||||
let
|
let
|
||||||
Source =
|
TABLE_1 = Table.FromRows({{"BBU County", "BBU County"},{"BU_County", "BU_County"}},{"REGION_TYPE","region_name"}),
|
||||||
Value.NativeQuery(
|
#"Changed Type" = Table.TransformColumnTypes(TABLE_1,{{"REGION_TYPE", type text}, {"region_name", type text}})
|
||||||
Databricks.Catalogs(
|
|
||||||
ServerAddress, HttpPath, [
|
|
||||||
Catalog = CatalogName,
|
|
||||||
Database = null,
|
|
||||||
EnableAutomaticProxyDiscovery = null,EnableQueryResultDownload="0"
|
|
||||||
]
|
|
||||||
){
|
|
||||||
[Name = CatalogName, Kind = "Database"]
|
|
||||||
}[Data],
|
|
||||||
// " SELECT DISTINCT A.REGION_TYPE,'BBU_COUNTY' REGION_NAME
|
|
||||||
// FROM DM.dm_ext_county_tf_sales_region A
|
|
||||||
// WHERE A.REGION_TYPE IN ('bbu_county_obu_nonEast5','BBU COUNTY')
|
|
||||||
// UNION ALL
|
|
||||||
// SELECT DISTINCT A.REGION_TYPE,'BBU_BU_COUNTY' REGION_NAME
|
|
||||||
// FROM DM.dm_ext_county_tf_sales_region A
|
|
||||||
// WHERE A.REGION_TYPE IN ('BBU_BU_COUNTY','bbu_bu_county_obu_East5','bbu_bu_county_obu_nonEast5')
|
|
||||||
// UNION ALL
|
|
||||||
// SELECT DISTINCT A.REGION_TYPE,'OBU East5' REGION_NAME
|
|
||||||
// FROM DM.dm_ext_county_tf_sales_region A
|
|
||||||
// WHERE A.REGION_TYPE = 'bbu_bu_county_obu_East5'
|
|
||||||
// UNION ALL
|
|
||||||
// SELECT DISTINCT A.REGION_TYPE,'OBU NonEast5' REGION_NAME
|
|
||||||
// FROM DM.dm_ext_county_tf_sales_region A
|
|
||||||
// WHERE A.REGION_TYPE IN ('bbu_bu_county_obu_nonEast5','bbu_county_obu_nonEast5')
|
|
||||||
// "
|
|
||||||
"SELECT DISTINCT A.REGION_TYPE
|
|
||||||
FROM DM.dm_ext_county_tf_sales_region A
|
|
||||||
WHERE A.REGION_TYPE IS NOT NULL"
|
|
||||||
& UsingLimit,
|
|
||||||
null,
|
|
||||||
[
|
|
||||||
EnableFolding = true
|
|
||||||
]
|
|
||||||
),
|
|
||||||
已添加自定义 = Table.AddColumn(Source, "region_name", each if [REGION_TYPE]="bbu_bu_county_obu_East5" then "OBU East5"
|
|
||||||
else if List.Contains({"bbu_bu_county_obu_nonEast5", "bbu_county_obu_nonEast5"}, [REGION_TYPE]) then "OBU NonEast5"
|
|
||||||
else if List.Contains({"BBU County", "bbu_county_obu_nonEast5"}, [REGION_TYPE]) then "BBU County"
|
|
||||||
else if List.Contains({"BBU_BU_COUNTY", "bbu_bu_county_obu_East5","bbu_bu_county_obu_nonEast5"}, [REGION_TYPE]) then "BBU_BU_COUNTY"
|
|
||||||
else 9),
|
|
||||||
#"Added Custom" = Table.AddColumn(已添加自定义, "IS_HIDDEN_COUNTY", each if Text.StartsWith([region_name], "OBU") then 1 else if Text.StartsWith([region_name], "BBU") then 0 else 0)
|
|
||||||
in
|
in
|
||||||
#"Added Custom"
|
#"Changed Type"
|
||||||
```
|
|
||||||
|
|
||||||
annotation PBI_ResultType = Table
|
annotation PBI_ResultType = Table
|
||||||
|
|
||||||
|
|||||||
@@ -160,13 +160,6 @@ table Fact_Sales
|
|||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
annotation SummarizationSetBy = Automatic
|
||||||
|
|
||||||
column COUNTY_FLAG = IF([REGION_TYPE] IN {"BBU_BU COUNTY","OBU_BU COUNTY","OBU COUNTY","BBU COUNTY"},1,0)
|
|
||||||
formatString: 0
|
|
||||||
lineageTag: 54d2f08a-99ae-4b56-8612-73a265a98b88
|
|
||||||
summarizeBy: sum
|
|
||||||
|
|
||||||
annotation SummarizationSetBy = Automatic
|
|
||||||
|
|
||||||
column GEO_FLAG =
|
column GEO_FLAG =
|
||||||
|
|
||||||
SWITCH(TRUE(),
|
SWITCH(TRUE(),
|
||||||
|
|||||||
@@ -195,38 +195,75 @@ table Fact_Sales_Total
|
|||||||
[Name = CatalogName, Kind = "Database"]
|
[Name = CatalogName, Kind = "Database"]
|
||||||
}[Data],
|
}[Data],
|
||||||
"
|
"
|
||||||
|
WITH base AS (
|
||||||
|
-- 下推过滤,主表只扫一次
|
||||||
|
SELECT *
|
||||||
|
FROM DM.dm_tf_ext_unionall_sales_mapping
|
||||||
|
WHERE YYYYMM >= (YEAR(CURRENT_DATE()) - 3) * 100 + 1
|
||||||
|
),
|
||||||
|
|
||||||
|
geo AS (
|
||||||
|
-- 小维表预聚合去重,配合 BROADCAST 使用
|
||||||
|
SELECT DISTINCT AUDIT_COD, PROVINCE_GROUP
|
||||||
|
FROM DM.dm_td_external_geo_type
|
||||||
|
WHERE DATA_SOURCE = 'IQVIA-COUNTY(Quarterly)'
|
||||||
|
AND PROVINCE_GROUP <> '全国'
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Branch 1: 非季度数据,REGION_TYPE 置空
|
||||||
SELECT
|
SELECT
|
||||||
|
YYYYMM,
|
||||||
|
MARKET,
|
||||||
|
CLASS,
|
||||||
|
PACK_COD,
|
||||||
|
PLATFORM_TYPE,
|
||||||
|
STORE_TYPE,
|
||||||
|
'' AS REGION_TYPE,
|
||||||
|
DATA_SOURCE,
|
||||||
|
concat(MARKET, DATA_SOURCE) AS MKT_SOURCE,
|
||||||
|
SUM(NULLIF(SALES_UNIT_CAL, 0)) AS SALES_UNIT_CAL,
|
||||||
|
SUM(NULLIF(SALES_UNIT_CAL_LY,0)) AS SALES_UNIT_CAL_LY,
|
||||||
|
SUM(NULLIF(SALES_VALUE_CAL, 0)) AS SALES_VALUE_CAL,
|
||||||
|
SUM(NULLIF(SALES_VALUE_CAL_LY,0)) AS SALES_VALUE_CAL_LY,
|
||||||
|
SUM(NULLIF(CONUTING_UNIT, 0)) AS CONUTING_UNIT,
|
||||||
|
SUM(NULLIF(CONUTING_UNIT_LY, 0)) AS CONUTING_UNIT_LY,
|
||||||
|
SUM(NULLIF(PDOT, 0)) AS PDOT,
|
||||||
|
SUM(NULLIF(PDOT_LY, 0)) AS PDOT_LY
|
||||||
|
FROM base
|
||||||
|
WHERE DATA_SOURCE NOT IN ('XH Data(Quarterly)', 'IQVIA-COUNTY(Quarterly)','AIA(Monthly)')
|
||||||
|
GROUP BY
|
||||||
|
YYYYMM, MARKET, CLASS, PACK_COD,
|
||||||
|
PLATFORM_TYPE, STORE_TYPE, DATA_SOURCE
|
||||||
|
|
||||||
|
UNION ALL
|
||||||
|
|
||||||
|
-- Branch 2: IQVIA 季度数据,关联省份分组
|
||||||
|
SELECT /*+ BROADCAST(geo) */
|
||||||
A.YYYYMM,
|
A.YYYYMM,
|
||||||
A.MARKET,
|
A.MARKET,
|
||||||
A.CLASS,
|
A.CLASS,
|
||||||
A.PACK_COD,
|
A.PACK_COD,
|
||||||
A.PLATFORM_TYPE,
|
'' as PLATFORM_TYPE,
|
||||||
A.STORE_TYPE,
|
'' as STORE_TYPE,
|
||||||
A.REGION_TYPE,
|
coalesce(B.PROVINCE_GROUP, '') AS REGION_TYPE,
|
||||||
A.DATA_SOURCE,
|
A.DATA_SOURCE,
|
||||||
concat(A.MARKET,A.DATA_SOURCE) MKT_SOURCE,
|
concat(A.MARKET, A.DATA_SOURCE) AS MKT_SOURCE,
|
||||||
SUM(NULLIF(A.SALES_UNIT_CAL, 0)) AS SALES_UNIT_CAL,
|
SUM(NULLIF(A.SALES_UNIT_CAL, 0)) AS SALES_UNIT_CAL,
|
||||||
SUM(NULLIF(A.SALES_UNIT_CAL_LY, 0)) AS SALES_UNIT_CAL_LY,
|
SUM(NULLIF(A.SALES_UNIT_CAL_LY,0)) AS SALES_UNIT_CAL_LY,
|
||||||
SUM(NULLIF(A.SALES_VALUE_CAL, 0)) AS SALES_VALUE_CAL,
|
SUM(NULLIF(A.SALES_VALUE_CAL, 0)) AS SALES_VALUE_CAL,
|
||||||
SUM(NULLIF(A.SALES_VALUE_CAL_LY, 0)) AS SALES_VALUE_CAL_LY,
|
SUM(NULLIF(A.SALES_VALUE_CAL_LY,0)) AS SALES_VALUE_CAL_LY,
|
||||||
SUM(NULLIF(A.CONUTING_UNIT, 0)) AS CONUTING_UNIT,
|
SUM(NULLIF(A.CONUTING_UNIT, 0)) AS CONUTING_UNIT,
|
||||||
SUM(NULLIF(A.CONUTING_UNIT_LY, 0)) AS CONUTING_UNIT_LY,
|
SUM(NULLIF(A.CONUTING_UNIT_LY, 0)) AS CONUTING_UNIT_LY,
|
||||||
SUM(NULLIF(A.PDOT, 0)) AS PDOT,
|
SUM(NULLIF(A.PDOT, 0)) AS PDOT,
|
||||||
SUM(NULLIF(A.PDOT_LY, 0)) AS PDOT_LY
|
SUM(NULLIF(A.PDOT_LY, 0)) AS PDOT_LY
|
||||||
FROM
|
FROM base A
|
||||||
DM.dm_tf_ext_unionall_sales_mapping A
|
LEFT JOIN geo B
|
||||||
WHERE
|
ON A.AUDIT_COD = B.AUDIT_COD
|
||||||
YYYYMM >= (YEAR(CURRENT_DATE()) - 3) * 100 + 1 -- 内联,消除 CROSS JOIN
|
WHERE A.DATA_SOURCE = 'IQVIA-COUNTY(Quarterly)'
|
||||||
AND DATA_SOURCE <> 'XH Data(Quarterly)'
|
|
||||||
GROUP BY
|
GROUP BY
|
||||||
A.YYYYMM,
|
A.YYYYMM, A.MARKET, A.CLASS, A.PACK_COD,
|
||||||
A.MARKET,
|
A.DATA_SOURCE,
|
||||||
A.CLASS,
|
coalesce(B.PROVINCE_GROUP, '')
|
||||||
A.PACK_COD,
|
|
||||||
A.PLATFORM_TYPE,
|
|
||||||
A.STORE_TYPE,
|
|
||||||
A.REGION_TYPE,
|
|
||||||
A.DATA_SOURCE
|
|
||||||
"
|
"
|
||||||
& UsingLimit,
|
& UsingLimit,
|
||||||
null,
|
null,
|
||||||
@@ -238,7 +275,7 @@ table Fact_Sales_Total
|
|||||||
Source
|
Source
|
||||||
```
|
```
|
||||||
|
|
||||||
annotation PBI_ResultType = Table
|
annotation PBI_ResultType = Exception
|
||||||
|
|
||||||
annotation PBI_NavigationStepName = Navigation
|
annotation PBI_NavigationStepName = Navigation
|
||||||
|
|
||||||
|
|||||||
@@ -1613,38 +1613,8 @@ table Measure
|
|||||||
lineageTag: fb23c401-367f-47a1-be96-8ab5a3691aac
|
lineageTag: fb23c401-367f-47a1-be96-8ab5a3691aac
|
||||||
|
|
||||||
measure 'External.Sales.LY.KPI' =
|
measure 'External.Sales.LY.KPI' =
|
||||||
VAR MKT_FLAG =
|
|
||||||
SELECTEDVALUE ( Dim_Market[IS_HIDDEN_COUNTY], -1 )
|
|
||||||
RETURN
|
|
||||||
//如果选择market,且选择province_group,则隐藏ONC&RARE市场
|
|
||||||
SWITCH (
|
SWITCH (
|
||||||
TRUE ( ),
|
TRUE ( ),
|
||||||
ISFILTERED ( Dim_GeoGroup ),
|
|
||||||
SWITCH (
|
|
||||||
MKT_FLAG,
|
|
||||||
-1, [External.Sales.LY.MTH.MID],
|
|
||||||
1,
|
|
||||||
CALCULATE (
|
|
||||||
[External.Sales.LY.MTH.MID],
|
|
||||||
KEEPFILTERS (
|
|
||||||
TREATAS ( { 0, 3 }, Dim_GeoGroup[PROVINCE_GROUP_CATAGORY] )
|
|
||||||
)
|
|
||||||
),
|
|
||||||
2,
|
|
||||||
CALCULATE (
|
|
||||||
[External.Sales.LY.MTH.MID],
|
|
||||||
KEEPFILTERS (
|
|
||||||
TREATAS ( { 0, 2, 3 }, Dim_GeoGroup[PROVINCE_GROUP_CATAGORY] )
|
|
||||||
)
|
|
||||||
),
|
|
||||||
0,
|
|
||||||
CALCULATE (
|
|
||||||
[External.Sales.LY.MTH.MID],
|
|
||||||
KEEPFILTERS (
|
|
||||||
TREATAS ( { 0, 1, 3 }, Dim_GeoGroup[PROVINCE_GROUP_CATAGORY] )
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
ISFILTERED ( AIA_Merge_Data[mergedata_5_2] ),
|
ISFILTERED ( AIA_Merge_Data[mergedata_5_2] ),
|
||||||
SUMX (
|
SUMX (
|
||||||
VALUES ( Dim_MergeDataSource[DATA_SOURCE] ),
|
VALUES ( Dim_MergeDataSource[DATA_SOURCE] ),
|
||||||
@@ -1959,38 +1929,8 @@ table Measure
|
|||||||
lineageTag: 80db969c-cb8b-4fb1-a94b-1904c1af37d5
|
lineageTag: 80db969c-cb8b-4fb1-a94b-1904c1af37d5
|
||||||
|
|
||||||
measure 'External.Sales.KPI' =
|
measure 'External.Sales.KPI' =
|
||||||
VAR MKT_FLAG =
|
|
||||||
SELECTEDVALUE ( Dim_Market[IS_HIDDEN_COUNTY], -1 )
|
|
||||||
RETURN
|
|
||||||
//如果选择market,且选择province_group,则隐藏ONC&RARE市场
|
|
||||||
SWITCH (
|
SWITCH (
|
||||||
TRUE ( ),
|
TRUE ( ),
|
||||||
ISFILTERED ( Dim_GeoGroup ),
|
|
||||||
SWITCH (
|
|
||||||
MKT_FLAG,
|
|
||||||
-1, [External.Sales.MTH.MID],
|
|
||||||
1,
|
|
||||||
CALCULATE (
|
|
||||||
[External.Sales.MTH.MID],
|
|
||||||
KEEPFILTERS (
|
|
||||||
TREATAS ( { 0, 3 }, Dim_GeoGroup[PROVINCE_GROUP_CATAGORY] )
|
|
||||||
)
|
|
||||||
),
|
|
||||||
2,
|
|
||||||
CALCULATE (
|
|
||||||
[External.Sales.MTH.MID],
|
|
||||||
KEEPFILTERS (
|
|
||||||
TREATAS ( { 0, 2, 3 }, Dim_GeoGroup[PROVINCE_GROUP_CATAGORY] )
|
|
||||||
)
|
|
||||||
),
|
|
||||||
0,
|
|
||||||
CALCULATE (
|
|
||||||
[External.Sales.MTH.MID],
|
|
||||||
KEEPFILTERS (
|
|
||||||
TREATAS ( { 0, 1, 3 }, Dim_GeoGroup[PROVINCE_GROUP_CATAGORY] )
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
ISFILTERED ( AIA_Merge_Data[mergedata_5_2] ),
|
ISFILTERED ( AIA_Merge_Data[mergedata_5_2] ),
|
||||||
SUMX (
|
SUMX (
|
||||||
VALUES ( Dim_MergeDataSource[DATA_SOURCE] ),
|
VALUES ( Dim_MergeDataSource[DATA_SOURCE] ),
|
||||||
|
|||||||
@@ -1943,7 +1943,7 @@
|
|||||||
"height": 300,
|
"height": 300,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 10
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -1956,7 +1956,7 @@
|
|||||||
"height": 176,
|
"height": 176,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -1969,7 +1969,7 @@
|
|||||||
"height": 300,
|
"height": 300,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -1982,7 +1982,7 @@
|
|||||||
"height": 152,
|
"height": 152,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -1995,12 +1995,12 @@
|
|||||||
"height": 152,
|
"height": 152,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
"x": 840.91665884177678,
|
"x": 1013.9166588417768,
|
||||||
"y": 158.266476064088
|
"y": 122.26647606408801
|
||||||
},
|
},
|
||||||
"nodeIndex": "Dim_RegionType",
|
"nodeIndex": "Dim_RegionType",
|
||||||
"nodeLineageTag": "6aa1d3be-7da3-480d-96ed-18f4d5839bbe",
|
"nodeLineageTag": "6aa1d3be-7da3-480d-96ed-18f4d5839bbe",
|
||||||
@@ -2008,7 +2008,7 @@
|
|||||||
"height": 152,
|
"height": 152,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -2021,7 +2021,7 @@
|
|||||||
"height": 176,
|
"height": 176,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -2034,7 +2034,7 @@
|
|||||||
"height": 248,
|
"height": 248,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 7
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -2047,7 +2047,7 @@
|
|||||||
"height": 152,
|
"height": 152,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 8
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"location": {
|
"location": {
|
||||||
@@ -2060,7 +2060,7 @@
|
|||||||
"height": 300,
|
"height": 300,
|
||||||
"width": 234
|
"width": 234
|
||||||
},
|
},
|
||||||
"zIndex": 0
|
"zIndex": 9
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "Layout 1",
|
"name": "Layout 1",
|
||||||
@@ -2071,6 +2071,6 @@
|
|||||||
"tablesLocked": false
|
"tablesLocked": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selectedDiagram": "Main_CHPA",
|
"selectedDiagram": "Layout 1",
|
||||||
"defaultDiagram": "All tables"
|
"defaultDiagram": "All tables"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user