0401修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"tabOrder": [
|
||||
"20251204"
|
||||
"Script 1"
|
||||
],
|
||||
"defaultTab": "20251204"
|
||||
"defaultTab": "Script 1"
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
createOrReplace
|
||||
|
||||
table MQY
|
||||
lineageTag: d1b1f83d-7eb1-4ff3-bfdb-4ef33a10fca8
|
||||
|
||||
calculationGroup
|
||||
|
||||
calculationItem MTH = SELECTEDMEASURE()
|
||||
|
||||
calculationItem QTD = CALCULATE(SELECTEDMEASURE(), DATESQTD(Dim_Calendar[Date]))
|
||||
|
||||
calculationItem YTD = CALCULATE(SELECTEDMEASURE(), DATESYTD(Dim_Calendar[Date]))
|
||||
|
||||
calculationItem QTDAvg = CALCULATE( AVERAGEX(VALUES(Dim_Calendar[YYYYMM]), SELECTEDMEASURE()+0 ),DATESQTD(Dim_Calendar[Date]) )
|
||||
|
||||
calculationItem HYTDAvg =
|
||||
|
||||
VAR Y = MAX(Dim_Calendar[Year])
|
||||
VAR M = MAX(Dim_Calendar[MONTH])
|
||||
VAR DT0 = IF(M<=6, DATE(Y,1,1), DATE(Y,7,1))
|
||||
VAR DT1 = MAX(Dim_Calendar[Date])
|
||||
RETURN CALCULATE(
|
||||
AVERAGEX(VALUES(Dim_Calendar[YYYYMM]), SELECTEDMEASURE()+0),
|
||||
DATESBETWEEN(Dim_Calendar[Date], DT0, DT1)
|
||||
)
|
||||
|
||||
calculationItem RHYAvg =
|
||||
|
||||
VAR Y = MAX(Dim_Calendar[Year])
|
||||
VAR M = MAX(Dim_Calendar[MONTH])
|
||||
VAR DT = IF(M<=6, DATE(Y,1,1), DATE(Y,7,1))
|
||||
VAR DT0 = DATE(YEAR(DT), MONTH(DT)-6,1)
|
||||
VAR DT1 = DATE(YEAR(DT0), MONTH(DT0)+5,1)
|
||||
RETURN CALCULATE(
|
||||
AVERAGEX(VALUES(Dim_Calendar[YYYYMM]), SELECTEDMEASURE()+0),
|
||||
DATESBETWEEN(Dim_Calendar[Date], DT0, DT1)
|
||||
)
|
||||
//return DT1
|
||||
|
||||
column Period
|
||||
dataType: string
|
||||
lineageTag: cd2f1dfe-55bd-4315-8569-5f3d985e5936
|
||||
summarizeBy: none
|
||||
sourceColumn: Name
|
||||
sortByColumn: 序号
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column 序号
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: e563ba22-724a-4b45-b545-567fcba9d094
|
||||
summarizeBy: sum
|
||||
sourceColumn: Ordinal
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -140,7 +140,7 @@ expression Fact_Sales_SQL = ```
|
||||
|
||||
expression Fact_Sales_SQL_limit =
|
||||
let
|
||||
Source = "limit 0"
|
||||
Source = "--limit 10"
|
||||
in
|
||||
Source
|
||||
lineageTag: 0f84d4f0-a309-44e1-a495-ffd9a5fdc993
|
||||
|
||||
@@ -66,7 +66,7 @@ queryGroup Dim
|
||||
|
||||
annotation __PBI_TimeIntelligenceEnabled = 0
|
||||
|
||||
annotation PBI_QueryOrder = ["Measure THC","Dim_PackInfo_Retail","Dim_MergeDataSource","Fact_Retail_Brand","Fact_Retail_RawData","Fact_EC_Total","Fact_Retail","Config_ReportURL","refresh_time","Dim_BrandMKT","Dim_Market_Total","Dim_MarketTA_Total","Dim_BrandDefaultMKT","Dim_Calendar","Dim_Corp","Dim_DataSource","Dim_Geo","Dim_PlatformMID","Dim_StoreTypeMID","Dim_GeoGroup","Dim_Market","Dim_MarketTA","Dim_MKTPackMapping","Dim_Org","Dim_PackInfo","Dim_Platform","Dim_StoreType","Dim_ExchangRate","DM_AUTH_ORG","DM_AUTH_PRD","DM_AUTH_SALES_GEO","DM_AUTH_SALES_MKT","DM_AUTH_SALES_PACK","DM_AUTH_SALES_ORG","DM_AUTH_GEO","HttpPath","CatalogName","ServerAddress","limit_validity","UsingLimit","limit","TOP","Dim_MKTPackMapping_Total","Dim_PackInfo_Total","Dim_RegionType","Fact_Sales_Total","Dim_Unit","dm_td_chpa_market_definition","Fact_Retail_Total","Fact_Sales_Total_AIA","Fact_EC","Dim_Class","Dim_HPFlag","Dim_HPFlag_AIASpecial","Dim_InsSalesType","Dim_InsSalesType_AIASpecial","Dim_IsTarget_AIASpecial","Dim_CoreDept","Dim_Dept","Dim_PrescriptionSource","Dim_Reimburse","Dim_ReimburseType","dm_auth_aia_sales_pack","dm_auth_aia_sales_geo","dm_auth_aia_sales_org","dm_auth_aia_sales_mkt","DM_AIA_TD_HOSPITAL_NOT_PROVIDED","Dim_Original_Col_AIA","Dim_HP_Potential_AIA","AIA.Measures","DM_AUTH_PRD_PACK","Fact_Retail_Special","Fact_Sales_NIAD","AIA_AdvanceAnalysis_Brand","AIA_AdvanceAnalysis_Class","AIA_AdvanceAnalysis_Key_Competitor","AIA_AdvanceAnalysis_Mole","AIA_AdvanceAnalysis_Subchannel","AIA_AdvanceAnalysis_DRAGON","AIA_AdvanceAnalysis_Decile","AIA_AdvanceAnalysis_Decile_Group","Dim_IsEagle_AIASpecial","Dim_IsEagle_Bridge_AIASpecial","Dim_RC","Dim_Institution","DM_AUTH_SALES_TA","DM_AUTH_NONSALES_TA","DM_AUTH_MERGED_DATA","DM_AUTH_NONSALES_ORG","dm_td_user_permission_detail","Config_MarketRatio","Config_MergeData","Dim_RC_Merged_Data","Fact_Sales_SQL","Fact_Sales_SQL_limit","Fact_Sales","Fact_AIA_DataQuality","DM_AUTH_EMAIL_NOTIFICATION","Config_EmailWarning","Dim_Remove_inst","Config_PageFlag_FreeReportNIAD","Config_VisualFlag","Fact_Sales_THC","00_KPI","Dim_KeyCompetitor","Dim_Store","Dim_HP_Level"]
|
||||
annotation PBI_QueryOrder = ["Measure THC","Dim_PackInfo_Retail","Dim_MergeDataSource","Fact_Retail_Brand","Fact_Retail_RawData","Fact_EC_Total","Fact_Retail","Config_ReportURL","refresh_time","Dim_BrandMKT","Dim_Market_Total","Dim_MarketTA_Total","Dim_BrandDefaultMKT","Dim_Calendar","Dim_Corp","Dim_DataSource","Dim_Geo","Dim_PlatformMID","Dim_StoreTypeMID","Dim_GeoGroup","Dim_Market","Dim_MarketTA","Dim_Org","Dim_PackInfo","Dim_Platform","Dim_StoreType","Dim_ExchangRate","DM_AUTH_ORG","DM_AUTH_PRD","DM_AUTH_SALES_GEO","DM_AUTH_SALES_MKT","DM_AUTH_SALES_PACK","DM_AUTH_SALES_ORG","DM_AUTH_GEO","HttpPath","CatalogName","ServerAddress","limit_validity","UsingLimit","limit","TOP","Dim_MKTPackMapping_Total","Dim_PackInfo_Total","Dim_RegionType","Fact_Sales_Total","Dim_Unit","dm_td_chpa_market_definition","Fact_Retail_Total","Fact_Sales_Total_AIA","Fact_EC","Dim_Class","Dim_HPFlag","Dim_HPFlag_AIASpecial","Dim_InsSalesType","Dim_InsSalesType_AIASpecial","Dim_IsTarget_AIASpecial","Dim_CoreDept","Dim_Dept","Dim_PrescriptionSource","Dim_Reimburse","Dim_ReimburseType","dm_auth_aia_sales_pack","dm_auth_aia_sales_geo","dm_auth_aia_sales_org","dm_auth_aia_sales_mkt","DM_AIA_TD_HOSPITAL_NOT_PROVIDED","Dim_Original_Col_AIA","Dim_HP_Potential_AIA","AIA.Measures","DM_AUTH_PRD_PACK","Fact_Retail_Special","Fact_Sales_NIAD","AIA_AdvanceAnalysis_Brand","AIA_AdvanceAnalysis_Class","AIA_AdvanceAnalysis_Key_Competitor","AIA_AdvanceAnalysis_Mole","AIA_AdvanceAnalysis_Subchannel","AIA_AdvanceAnalysis_DRAGON","AIA_AdvanceAnalysis_Decile","AIA_AdvanceAnalysis_Decile_Group","Dim_IsEagle_AIASpecial","Dim_IsEagle_Bridge_AIASpecial","Dim_RC","Dim_Institution","DM_AUTH_SALES_TA","DM_AUTH_NONSALES_TA","DM_AUTH_MERGED_DATA","DM_AUTH_NONSALES_ORG","dm_td_user_permission_detail","Config_MarketRatio","Config_MergeData","Dim_RC_Merged_Data","Fact_Sales_SQL","Fact_Sales_SQL_limit","Fact_Sales","Fact_AIA_DataQuality","DM_AUTH_EMAIL_NOTIFICATION","Config_EmailWarning","Dim_Remove_inst","Config_PageFlag_FreeReportNIAD","Config_VisualFlag","Fact_Sales_THC","00_KPI","Dim_KeyCompetitor","Dim_Store","Dim_HP_Level"]
|
||||
|
||||
annotation __TEdtr = 1
|
||||
|
||||
@@ -95,7 +95,6 @@ ref table Fields_TopPlayer
|
||||
ref table 'Fields.Rows'
|
||||
ref table 'Measures Val'
|
||||
ref table Dim_MKTPackMapping_Total
|
||||
ref table Dim_MKTPackMapping
|
||||
ref table Fact_Sales
|
||||
ref table Fields_Leader
|
||||
ref table 'MarketGeo Val'
|
||||
|
||||
@@ -117,32 +117,11 @@ relationship 2e91292f-ad43-9957-8b21-359df82e3e77
|
||||
fromColumn: Fact_Sales_Total.REGION_TYPE
|
||||
toColumn: Dim_RegionType.REGION_TYPE
|
||||
|
||||
relationship b921a09b-1c48-bcfc-28dd-b2f384f714dd
|
||||
fromColumn: Fact_Sales.HP_SOURCE
|
||||
toColumn: Dim_HPFlag.HP_SOURCE
|
||||
|
||||
relationship 39d7248b-e1f6-e8f4-9fb0-c0ef428c4c55
|
||||
toCardinality: many
|
||||
fromColumn: Fact_Sales.INST_SOURCE
|
||||
toColumn: Dim_InsSalesType.INS_SOURCE
|
||||
|
||||
relationship b2d23a46-9d2a-6a0b-29de-3db6cc2ecce2
|
||||
fromColumn: Fact_Sales.PLATFORM_TYPE_SOURCE
|
||||
toColumn: Dim_PlatformMID.PLATFORM_TYPE_SOURCE
|
||||
|
||||
relationship 02ad8a9b-c132-0ab0-0a09-3037cef436a4
|
||||
fromColumn: Fact_Sales.STORE_TYPE_SOURCE
|
||||
toColumn: Dim_StoreTypeMID.STORE_TYPE_SOURCE
|
||||
|
||||
relationship 180235a4-7288-6615-7b0e-62ab25528bd7
|
||||
toCardinality: many
|
||||
fromColumn: Dim_Geo.AUDIT_KEY
|
||||
toColumn: Dim_GeoGroup.AUDIT_KEY
|
||||
|
||||
relationship 025e31e4-4ff6-32d0-000d-0d690345aca4
|
||||
fromColumn: Fact_Sales.DEPT_SOURCE
|
||||
toColumn: Dim_Dept.DEPT_SOURCE
|
||||
|
||||
relationship 0c9a0b32-00eb-8ee9-69f0-73ab3491188d
|
||||
fromColumn: Fact_EC.DATA_SOURCE
|
||||
toColumn: Dim_DataSource.DATA_SOURCE
|
||||
@@ -155,18 +134,6 @@ relationship 4bc612b3-ed74-b4ac-fd4a-77d3d0408fa4
|
||||
fromColumn: Fact_Retail.AUDIT_KEY
|
||||
toColumn: Dim_Geo.AUDIT_KEY
|
||||
|
||||
relationship 94d03aab-6386-35c6-0d96-22409cdde7e4
|
||||
fromColumn: Fact_Sales.PRESCRIPTION_SOURCE
|
||||
toColumn: Dim_PrescriptionSource.PRESCRIPTION_SOURCE
|
||||
|
||||
relationship 85d14b78-4e8c-16ba-ca85-909ee0ee3667
|
||||
fromColumn: Fact_Sales.REIMBURSE_SOURCE
|
||||
toColumn: Dim_Reimburse.REIMBURSE_SOURCE
|
||||
|
||||
relationship 9b2e831d-778e-29c0-7ebe-478ce836de67
|
||||
fromColumn: Fact_Sales.REIMBURSETYPE_SOURCE
|
||||
toColumn: Dim_ReimburseType.REIMBURSETYPE_SOURCE
|
||||
|
||||
relationship 22cd42ef-4616-0ab8-2cc5-6667a1fd6449
|
||||
toCardinality: many
|
||||
fromColumn: Dim_PackInfo.PACK_SOURCE
|
||||
@@ -285,10 +252,6 @@ relationship 41fd0ee7-2e3d-af44-4605-f6de5a1309f2
|
||||
fromColumn: Dim_RC.INS_MKT_SOURCE
|
||||
toColumn: Dim_IsEagle_Bridge_AIASpecial.IS_EAGLE_FLAG_CODE
|
||||
|
||||
relationship 6b611437-19d2-fc60-0041-57cf1e0dbfe0
|
||||
fromColumn: Fact_Sales.INST_SOURCE
|
||||
toColumn: Dim_Institution.INST_SOURCE
|
||||
|
||||
relationship 7ea59699-18e2-61ed-4eb7-06f73472444d
|
||||
crossFilteringBehavior: bothDirections
|
||||
fromColumn: Dim_RC.AUDIT_SOURCE
|
||||
@@ -302,10 +265,6 @@ relationship 39601d48-d1fe-a6df-11f1-0ab3185dc900
|
||||
fromColumn: Fact_Sales_Total_AIA.DATE_KEY
|
||||
toColumn: Dim_Calendar.DATE
|
||||
|
||||
relationship 466ab709-dc3b-bc7a-6f77-9483c14ac41e
|
||||
fromColumn: Fact_Sales.DATA_SOURCE
|
||||
toColumn: Dim_DataSource.DATA_SOURCE
|
||||
|
||||
relationship d2642643-8dee-0dcd-1213-e252b24ce99a
|
||||
fromColumn: Fact_Retail.DATA_SOURCE
|
||||
toColumn: Dim_DataSource.DATA_SOURCE
|
||||
@@ -342,10 +301,6 @@ relationship 2724b646-60c1-d1d3-0343-6ffbe6c685cb
|
||||
fromColumn: Fact_Retail_RawData.DATA_SOURCE
|
||||
toColumn: Dim_DataSource_ForRLS.DATA_SOURCE
|
||||
|
||||
relationship ef237336-c5b5-5445-4e6a-4e9a3d4c1c64
|
||||
fromColumn: Fact_Sales.DATA_SOURCE
|
||||
toColumn: Dim_DataSource_ForRLS.DATA_SOURCE
|
||||
|
||||
relationship 1375fbc8-d685-530f-2d1e-434050110dee
|
||||
fromColumn: Fact_Retail_Special.audit_key
|
||||
toColumn: Dim_Geo.AUDIT_KEY
|
||||
@@ -369,21 +324,6 @@ relationship 73477bd1-8615-2d4f-4a3d-99b57f53e812
|
||||
fromColumn: Dim_BrandMKT.IS_HIDDEN_COUNTY
|
||||
toColumn: Dim_RegionType.IS_HIDDEN_COUNTY
|
||||
|
||||
relationship 872d65d4-35d8-b990-c89a-0e5664af563d
|
||||
isActive: false
|
||||
fromColumn: Fact_Sales.MERGEDATA_FLAG
|
||||
toColumn: Dim_MergeDataSource.DATA_SOURCE
|
||||
|
||||
relationship 471a07e5-fa4c-7716-c2d6-32ffa233c243
|
||||
isActive: false
|
||||
fromColumn: Fact_Sales.MERGEDATA_FLAG_MKT
|
||||
toColumn: Dim_MergeDataSource.DATA_SOURCE
|
||||
|
||||
relationship b0a71e80-0399-5d9b-ae9b-334216033e0e
|
||||
isActive: false
|
||||
fromColumn: Fact_Sales.MERGEDATA_FLAG_CHAP_DTP_NOAIA
|
||||
toColumn: Dim_MergeDataSource.DATA_SOURCE
|
||||
|
||||
relationship 8f295e0b-4761-0abb-e005-51d8d5d2448f
|
||||
toCardinality: many
|
||||
fromColumn: Fact_Retail_Special.rc_key
|
||||
@@ -432,40 +372,104 @@ relationship 3776a832-506c-22f1-7eb5-264c76b6f2ba
|
||||
fromColumn: Fact_Sales_NIAD.DATE_KEY
|
||||
toColumn: Dim_Calendar.DATE
|
||||
|
||||
relationship b1912857-9b92-e923-e3d0-c866f9f8f24b
|
||||
fromColumn: Fact_Sales.KEY_COMPETITOR
|
||||
toColumn: Dim_KeyCompetitor.KEY_COMPETITOR
|
||||
relationship 6a0314d7-11c1-43f0-e010-6197d9d952ae
|
||||
fromColumn: Dim_KeyCompetitor.KEY_COMPETITOR_CN
|
||||
toColumn: AIA_AdvanceAnalysis_Key_Competitor.KEY_COMPETITOR_CN
|
||||
|
||||
relationship 61f8ec4a-c47f-679c-9d86-1f6fccc66d16
|
||||
fromColumn: Fact_Sales.DATE_KEY
|
||||
toColumn: Dim_Calendar.DATE
|
||||
relationship 6935ea45-0922-344b-9065-a708673725c1
|
||||
fromColumn: Fact_Sales_THC.MARKET_KEY
|
||||
toColumn: Dim_Market.MKT_SOURCE
|
||||
|
||||
relationship 02ad8a9b-c132-0ab0-0a09-3037cef436a4
|
||||
fromColumn: Fact_Sales.STORE_TYPE_SOURCE
|
||||
toColumn: Dim_StoreTypeMID.STORE_TYPE_SOURCE
|
||||
|
||||
relationship 9b2e831d-778e-29c0-7ebe-478ce836de67
|
||||
fromColumn: Fact_Sales.REIMBURSETYPE_SOURCE
|
||||
toColumn: Dim_ReimburseType.REIMBURSETYPE_SOURCE
|
||||
|
||||
relationship 85d14b78-4e8c-16ba-ca85-909ee0ee3667
|
||||
fromColumn: Fact_Sales.REIMBURSE_SOURCE
|
||||
toColumn: Dim_Reimburse.REIMBURSE_SOURCE
|
||||
|
||||
relationship 94d03aab-6386-35c6-0d96-22409cdde7e4
|
||||
fromColumn: Fact_Sales.PRESCRIPTION_SOURCE
|
||||
toColumn: Dim_PrescriptionSource.PRESCRIPTION_SOURCE
|
||||
|
||||
relationship b2d23a46-9d2a-6a0b-29de-3db6cc2ecce2
|
||||
fromColumn: Fact_Sales.PLATFORM_TYPE_SOURCE
|
||||
toColumn: Dim_PlatformMID.PLATFORM_TYPE_SOURCE
|
||||
|
||||
relationship 0659978d-9c7b-7574-57be-c7dcddae41b5
|
||||
fromColumn: Fact_Sales.PACK_SOURCE
|
||||
toColumn: Dim_PackInfo.PACK_SOURCE
|
||||
|
||||
relationship acf87217-1a59-35dc-7e91-7ca108b0012b
|
||||
fromColumn: Fact_Sales.AUDIT_KEY
|
||||
toColumn: Dim_Geo.AUDIT_KEY
|
||||
relationship 471a07e5-fa4c-7716-c2d6-32ffa233c243
|
||||
isActive: false
|
||||
fromColumn: Fact_Sales.MERGEDATA_FLAG_MKT
|
||||
toColumn: Dim_MergeDataSource.DATA_SOURCE
|
||||
|
||||
relationship dbb7344d-535c-f4b6-feeb-b53e5f20ee02
|
||||
fromColumn: Fact_Sales.AUDIT_SOURCE
|
||||
toColumn: Dim_GeoKey.AUDIT_SOURCE
|
||||
relationship b0a71e80-0399-5d9b-ae9b-334216033e0e
|
||||
isActive: false
|
||||
fromColumn: Fact_Sales.MERGEDATA_FLAG_CHAP_DTP_NOAIA
|
||||
toColumn: Dim_MergeDataSource.DATA_SOURCE
|
||||
|
||||
relationship 099e92f1-e155-0ce2-5d35-9036bfcb88e1
|
||||
fromColumn: Fact_Sales.MARKET_KEY
|
||||
toColumn: Dim_Market.MKT_SOURCE
|
||||
|
||||
relationship d3944838-fc11-1195-8d9c-c5a878df6e50
|
||||
fromColumn: Fact_Sales.CLASS_KEY
|
||||
toColumn: Dim_Class.CLASS_SOURCE
|
||||
|
||||
relationship 6a0314d7-11c1-43f0-e010-6197d9d952ae
|
||||
fromColumn: Dim_KeyCompetitor.KEY_COMPETITOR_CN
|
||||
toColumn: AIA_AdvanceAnalysis_Key_Competitor.KEY_COMPETITOR_CN
|
||||
relationship 872d65d4-35d8-b990-c89a-0e5664af563d
|
||||
isActive: false
|
||||
fromColumn: Fact_Sales.MERGEDATA_FLAG
|
||||
toColumn: Dim_MergeDataSource.DATA_SOURCE
|
||||
|
||||
relationship 6d09d05c-90dc-4b5b-c55f-a477aa98aacf
|
||||
toCardinality: many
|
||||
fromColumn: Fact_Sales.MARKET_KEY
|
||||
toColumn: Dim_CoreDept.MKT_SOURCE
|
||||
|
||||
relationship 099e92f1-e155-0ce2-5d35-9036bfcb88e1
|
||||
fromColumn: Fact_Sales.MARKET_KEY
|
||||
toColumn: Dim_Market.MKT_SOURCE
|
||||
|
||||
relationship b1912857-9b92-e923-e3d0-c866f9f8f24b
|
||||
fromColumn: Fact_Sales.KEY_COMPETITOR
|
||||
toColumn: Dim_KeyCompetitor.KEY_COMPETITOR
|
||||
|
||||
relationship 39d7248b-e1f6-e8f4-9fb0-c0ef428c4c55
|
||||
toCardinality: many
|
||||
fromColumn: Fact_Sales.INST_SOURCE
|
||||
toColumn: Dim_InsSalesType.INS_SOURCE
|
||||
|
||||
relationship 6b611437-19d2-fc60-0041-57cf1e0dbfe0
|
||||
fromColumn: Fact_Sales.INST_SOURCE
|
||||
toColumn: Dim_Institution.INST_SOURCE
|
||||
|
||||
relationship b921a09b-1c48-bcfc-28dd-b2f384f714dd
|
||||
fromColumn: Fact_Sales.HP_SOURCE
|
||||
toColumn: Dim_HPFlag.HP_SOURCE
|
||||
|
||||
relationship 025e31e4-4ff6-32d0-000d-0d690345aca4
|
||||
fromColumn: Fact_Sales.DEPT_SOURCE
|
||||
toColumn: Dim_Dept.DEPT_SOURCE
|
||||
|
||||
relationship 61f8ec4a-c47f-679c-9d86-1f6fccc66d16
|
||||
fromColumn: Fact_Sales.DATE_KEY
|
||||
toColumn: Dim_Calendar.DATE
|
||||
|
||||
relationship ef237336-c5b5-5445-4e6a-4e9a3d4c1c64
|
||||
fromColumn: Fact_Sales.DATA_SOURCE
|
||||
toColumn: Dim_DataSource_ForRLS.DATA_SOURCE
|
||||
|
||||
relationship 466ab709-dc3b-bc7a-6f77-9483c14ac41e
|
||||
fromColumn: Fact_Sales.DATA_SOURCE
|
||||
toColumn: Dim_DataSource.DATA_SOURCE
|
||||
|
||||
relationship d3944838-fc11-1195-8d9c-c5a878df6e50
|
||||
fromColumn: Fact_Sales.CLASS_KEY
|
||||
toColumn: Dim_Class.CLASS_SOURCE
|
||||
|
||||
relationship dbb7344d-535c-f4b6-feeb-b53e5f20ee02
|
||||
fromColumn: Fact_Sales.AUDIT_SOURCE
|
||||
toColumn: Dim_GeoKey.AUDIT_SOURCE
|
||||
|
||||
relationship acf87217-1a59-35dc-7e91-7ca108b0012b
|
||||
fromColumn: Fact_Sales.AUDIT_KEY
|
||||
toColumn: Dim_Geo.AUDIT_KEY
|
||||
|
||||
|
||||
@@ -7,20 +7,6 @@ table 00_KPI
|
||||
```
|
||||
lineageTag: 327243a7-d1c4-4efa-bec8-96f85ad40cec
|
||||
|
||||
measure 'chenwutest1 1' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_AIA[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: e759d580-5e15-4390-b0c0-68f39e297318
|
||||
|
||||
measure 'chenwutest1 2' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_CHPA[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: f42d8fd3-3a36-4646-8e70-020072dd89d5
|
||||
|
||||
measure '00.base.cu' =
|
||||
SUM ( Fact_Sales[CONUTING_UNIT] )
|
||||
//+ SUM ( Fact_Sales_Main_AIA[CONUTING_UNIT] )
|
||||
@@ -396,25 +382,25 @@ table 00_KPI
|
||||
VAR _count_TA = [00.base.if.countTA]
|
||||
RETURN
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
( ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org )
|
||||
TRUE ( )
|
||||
, ( ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org )
|
||||
|| ISFILTERED ( Dim_IsTarget_AIASpecial )
|
||||
|| ISFILTERED ( Dim_HP_Potential_AIA ) )
|
||||
|| _count,
|
||||
CALCULATE (
|
||||
[00.base.value.ly],
|
||||
TREATAS (
|
||||
[00.base.value.ly]
|
||||
, TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
),
|
||||
'0_Measure_CalGroup'[for_measure] = "_not_allmkt"
|
||||
),
|
||||
_count_TA,
|
||||
)
|
||||
, '0_Measure_CalGroup'[for_measure] = "_not_allmkt"
|
||||
)
|
||||
, _count_TA,
|
||||
CALCULATE (
|
||||
[00.base.value.ly],
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt_TA"
|
||||
),
|
||||
CALCULATE (
|
||||
)
|
||||
, CALCULATE (
|
||||
[00.base.value.ly],
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
@@ -900,44 +886,6 @@ table 00_KPI
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure 'chenwutest1 2 1' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_COUNTY[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: e9b9624d-3817-4f5d-b446-2e2e062b7472
|
||||
|
||||
measure 'chenwutest1 2 1 1' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_CHC[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: ffb5cf59-edcc-45ed-8358-826015e6bdf7
|
||||
|
||||
measure 'chenwutest1 2 1 1 1' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_DTP[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: e7a0ea7a-23e9-4160-8d48-ddddcc057a2e
|
||||
|
||||
measure 'chenwutest1 2 1 1 1 1' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_Retail[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: ef6de3f7-ee99-457a-bcf2-a56cf781d8c2
|
||||
|
||||
measure 'chenwutest1 2 1 1 1 1 1' = ```
|
||||
|
||||
SUM ( Fact_Sales_Main_EC[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
lineageTag: 7484c5d0-f2d7-4135-b161-265dc6b9f6e0
|
||||
|
||||
measure 'chenwutest1 2 1 1 1 1 1 1' = SUM ( Fact_Sales_Main_XH[SALES_VALUE_CAL] )
|
||||
lineageTag: ae2b39a3-19c9-41d4-adfc-e322d32f65d0
|
||||
|
||||
measure 'External.Prescription.LY.MTH' =
|
||||
VAR MKT =
|
||||
VALUES ( Dim_Market[MKT_SOURCE] )
|
||||
|
||||
@@ -1445,7 +1445,7 @@ table 'AIA.Measures'
|
||||
displayFolder: 01.General\02.1.TOPN
|
||||
lineageTag: f65f9380-1600-48d9-9a66-e4b9f395090f
|
||||
|
||||
measure YM_HasData_AIA = CALCULATE(FORMAT(MAX(Fact_Sales_Main_AIA[DATE_KEY]), "yyyyMM"), ALL(Fact_Sales),Fact_Sales[DATA_SOURCE] = "AIA(Monthly)" )
|
||||
measure YM_HasData_AIA = CALCULATE(FORMAT(MAX(FACT_SALES[DATE_KEY]), "yyyyMM"), ALL(Fact_Sales),Fact_Sales[DATA_SOURCE] = "AIA(Monthly)" )
|
||||
displayFolder: 03.Others
|
||||
lineageTag: f67a9f31-848b-4f84-8453-5e11486e9749
|
||||
|
||||
|
||||
@@ -115,7 +115,8 @@ table Dim_BrandDefaultMKT
|
||||
'Anti-HER2 Market',
|
||||
'Anti-HER2 mBC Market',
|
||||
'Fasenra Market',
|
||||
'Severe Asthma'
|
||||
'Severe Asthma',
|
||||
'DAPA Market'
|
||||
)
|
||||
THEN
|
||||
1
|
||||
@@ -155,7 +156,7 @@ table Dim_BrandDefaultMKT
|
||||
|
||||
changedProperty = IsHidden
|
||||
|
||||
annotation PBI_ResultType = Table
|
||||
annotation PBI_ResultType = Exception
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
|
||||
@@ -169,22 +169,6 @@ table Dim_Calendar
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column HasData_AIA =
|
||||
|
||||
VAR _end = [YM_HasData_AIA]
|
||||
VAR _start =
|
||||
( INT ( LEFT ( _end, 4 ) ) - 1 ) & "01"
|
||||
RETURN
|
||||
IF ( [YYYYMM] >= _start && [YYYYMM] <= _end, 1, 0 )
|
||||
/*
|
||||
用于AIA Dashboard的年月筛选。AIA只展示两年数据
|
||||
*/
|
||||
formatString: 0
|
||||
lineageTag: 28ea1db3-35a3-4be5-a6c9-30999ccd9232
|
||||
summarizeBy: sum
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column YYYYMM_EXTERNAL_AIA
|
||||
dataType: string
|
||||
lineageTag: 3d2b5b4e-57fd-496e-adf6-16b066dd8908
|
||||
|
||||
@@ -141,15 +141,6 @@ table Dim_Calendar_Alt
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column HasData_AIA
|
||||
formatString: 0
|
||||
lineageTag: d91ed9d4-8636-4e0e-9d9d-63ea67ed0bca
|
||||
summarizeBy: sum
|
||||
isNameInferred
|
||||
sourceColumn: Dim_Calendar[HasData_AIA]
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column YYYYMM_EXTERNAL_AIA
|
||||
lineageTag: 9a658880-79f1-4b7a-af50-10f383d01c94
|
||||
summarizeBy: none
|
||||
|
||||
@@ -51,7 +51,7 @@ table Dim_HP_Level
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
annotation PBI_ResultType = Exception
|
||||
annotation PBI_ResultType = Table
|
||||
|
||||
annotation TabularEditor_TableGroup = 04_DimTable
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ table Dim_KeyCompetitor
|
||||
|
||||
partition Dim_KeyCompetitor = m
|
||||
mode: import
|
||||
queryGroup: OLD
|
||||
queryGroup: Dim
|
||||
source = ```
|
||||
let
|
||||
Source = Value.NativeQuery(
|
||||
|
||||
@@ -1,246 +0,0 @@
|
||||
table Dim_MKTPackMapping
|
||||
lineageTag: 4faa718f-9d72-42fd-b611-ae3456efb818
|
||||
|
||||
column PACK_COD
|
||||
dataType: string
|
||||
lineageTag: f929b590-3327-45cc-9bdd-3e36fb798a43
|
||||
summarizeBy: none
|
||||
sourceColumn: PACK_COD
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PROD_DES
|
||||
dataType: string
|
||||
lineageTag: 39cca25f-cf41-44b3-bf88-1060c058728e
|
||||
summarizeBy: none
|
||||
sourceColumn: PROD_DES
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PROD_DES_C
|
||||
dataType: string
|
||||
lineageTag: f5a2d4f4-ef98-472c-a8c5-e10d4157861b
|
||||
summarizeBy: none
|
||||
sourceColumn: PROD_DES_C
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column MARKET
|
||||
dataType: string
|
||||
lineageTag: 236ff874-0645-4a1b-a952-a4584bbe3b90
|
||||
summarizeBy: none
|
||||
sourceColumn: MARKET
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CLASS
|
||||
dataType: string
|
||||
lineageTag: a9af738b-c6a7-45bf-aaa1-457f6c190515
|
||||
summarizeBy: none
|
||||
sourceColumn: CLASS
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column VALUE_MARKET_RATIO
|
||||
dataType: double
|
||||
lineageTag: ed9c1da4-f249-48ec-9a22-35fa2aec2850
|
||||
summarizeBy: sum
|
||||
sourceColumn: VALUE_MARKET_RATIO
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column UNIT_MARKET_RATIO
|
||||
dataType: double
|
||||
lineageTag: 3aa2947e-e094-4d49-a034-c0d2db024515
|
||||
summarizeBy: sum
|
||||
sourceColumn: UNIT_MARKET_RATIO
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column COUNTINGUNIT_MARKET_RATIO
|
||||
dataType: double
|
||||
lineageTag: c7debf53-3444-481a-9f21-5e3c5710b2c0
|
||||
summarizeBy: sum
|
||||
sourceColumn: COUNTINGUNIT_MARKET_RATIO
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column DATA_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 68d2c6a9-3b5f-4c1b-8e10-bea75569a878
|
||||
summarizeBy: none
|
||||
sourceColumn: DATA_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column MKT_SOURCE = [MARKET] & [DATA_SOURCE]
|
||||
lineageTag: 3831b652-2df2-4a51-bafc-021966147422
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CLASS_SOURCE = [MARKET] & [CLASS] & [DATA_SOURCE]
|
||||
lineageTag: 24a198f0-9134-4367-aa72-b975194438a1
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PDOT_MARKET_RATIO
|
||||
dataType: double
|
||||
lineageTag: a1e06cb5-6f0c-4e69-8c96-286c90adfe28
|
||||
summarizeBy: sum
|
||||
sourceColumn: PDOT_MARKET_RATIO
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column CLASS_DES = [CLASS]
|
||||
lineageTag: 8773177c-36be-440f-b0bf-5b64d1d4141e
|
||||
summarizeBy: none
|
||||
|
||||
changedProperty = SortByColumn
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PACK_SOURCE = [PACK_COD] & [DATA_SOURCE] & [new_code]
|
||||
lineageTag: 893f7007-fe3e-404e-a05d-eceab4cc7571
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column KEY_COMPETITOR
|
||||
dataType: string
|
||||
lineageTag: 609d6b37-69a6-43ab-9b56-71cfdbfa60a0
|
||||
summarizeBy: none
|
||||
sourceColumn: KEY_COMPETITOR
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column NEW_CODE
|
||||
dataType: string
|
||||
lineageTag: 75a3a5f0-6b3e-4001-9623-c7fa4ac45f53
|
||||
summarizeBy: none
|
||||
sourceColumn: NEW_CODE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CMPS_DES =
|
||||
RELATED(Dim_PackInfo[CMPS_DES])
|
||||
// LOOKUPVALUE(Dim_PackInfo[CMPS_DES],Dim_PackInfo[PACK_SOURCE],[PACK_SOURCE])
|
||||
lineageTag: 63d4ad34-76a2-4200-b785-b22d45447d9c
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column MOLECULE_SOURCE = [CMPS_DES] & [DATA_SOURCE]
|
||||
lineageTag: 4ebdb8a9-984b-43cb-9326-46d0a83c33f0
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column KEY_COMPETITOR_CN
|
||||
dataType: string
|
||||
lineageTag: 3b7b1fd2-727c-4357-958c-60a9c0b21edb
|
||||
summarizeBy: none
|
||||
sourceColumn: KEY_COMPETITOR_CN
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PDOT_TEXT = "counting unit"
|
||||
lineageTag: c9c27571-87a3-4ca2-9039-5b480a80c43d
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PDOT_MARKET_RATIO_LEVEL = LOOKUPVALUE(Config_MarketRatio[brandratio_countingunit_level],Config_MarketRatio[MARKET],[MARKET],Config_MarketRatio[PACK_COD],[PACK_COD])
|
||||
lineageTag: 4538708d-0b3c-4676-8ba5-8c3c948fb07a
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AIA_Remove
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: 7f57ca04-d157-4e79-b8ef-c31fb5f2b36e
|
||||
summarizeBy: sum
|
||||
sourceColumn: AIA_Remove
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Dim_MKTPackMapping = m
|
||||
mode: import
|
||||
queryGroup: OLD\非首页
|
||||
source = ```
|
||||
let
|
||||
Source =
|
||||
Value.NativeQuery(
|
||||
Databricks.Catalogs(
|
||||
ServerAddress, HttpPath, [
|
||||
Catalog = CatalogName,
|
||||
Database = null,
|
||||
EnableAutomaticProxyDiscovery = null,EnableQueryResultDownload="0"
|
||||
]
|
||||
){
|
||||
[Name = CatalogName, Kind = "Database"]
|
||||
}[Data],
|
||||
"
|
||||
SELECT DISTINCT
|
||||
A.PACK_COD,
|
||||
A.PROD_DES,
|
||||
A.PROD_DES_C,
|
||||
A.MARKET,CLASS,
|
||||
CAST(VALUE_MARKET_RATIO AS DECIMAL(38, 20)) VALUE_MARKET_RATIO,
|
||||
CAST(UNIT_MARKET_RATIO AS DECIMAL(38, 20)) UNIT_MARKET_RATIO,
|
||||
CAST(COUNTINGUNIT_MARKET_RATIO AS DECIMAL(38, 20)) COUNTINGUNIT_MARKET_RATIO,
|
||||
CAST(PDOT_MARKET_RATIO AS DECIMAL(38, 20)) PDOT_MARKET_RATIO,
|
||||
A.DATA_SOURCE,
|
||||
A.KEY_COMPETITOR,A.KEY_COMPETITOR_CN,A.NEW_CODE,
|
||||
CASE WHEN B.hidden_market is not null THEN 0 ELSE 1 END AS AIA_Remove
|
||||
FROM
|
||||
DM.DM_TD_EXTERNAL_MARKET_PACK_MAPPING A
|
||||
left join (
|
||||
select distinct
|
||||
hidden_market
|
||||
from dwd.dwd_gnd_ims_hidden_market
|
||||
where data_source = 'AIA') B
|
||||
on A.DATA_SOURCE = 'AIA(Monthly)' AND A.MARKET = B.hidden_market
|
||||
UNION ALL
|
||||
select
|
||||
'DTPOTHERS' as PACK_COD
|
||||
,'DTPOTHERS' as PROD_DES
|
||||
,'DTPOTHERS' as PROD_DES_C
|
||||
,'EGFR TKI Market' as MARKET
|
||||
,'Others' as CLASS
|
||||
,1 as VALUE_MARKET_RATIO
|
||||
,1 as UNIT_MARKET_RATIO
|
||||
,1 as COUNTINGUNIT_MARKET_RATIO
|
||||
,1 as PDOT_MARKET_RATIO
|
||||
,'DTP(Quarterly)' as DATA_SOURCE
|
||||
,'OTHERS' as KEY_COMPETITOR
|
||||
,'OTHERS' as KEY_COMPETITOR_CN
|
||||
,'' as NEW_CODE
|
||||
, 1
|
||||
"
|
||||
& UsingLimit,
|
||||
null,
|
||||
[
|
||||
EnableFolding = true
|
||||
]
|
||||
)
|
||||
in
|
||||
Source
|
||||
```
|
||||
|
||||
annotation PBI_ResultType = Exception
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
annotation TabularEditor_TableGroup = 04_DimTable
|
||||
|
||||
@@ -67,7 +67,7 @@ table Dim_Platform
|
||||
Source
|
||||
```
|
||||
|
||||
annotation PBI_ResultType = Exception
|
||||
annotation PBI_ResultType = Table
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
|
||||
@@ -186,24 +186,6 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_TYPE_SOURCE = [STORE_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: 1152f877-9d11-4ad8-a4e9-e56b2d9ae477
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM_TYPE_SOURCE = [PLATFORM_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: 3799fa82-b187-48de-9085-e7eb56137e2d
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_PLATFORM = [STORE_TYPE] & " - " & [PLATFORM_TYPE]
|
||||
lineageTag: 8b9050d4-c7f6-4a0e-9d00-1aff75be6332
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CMPS_FLAG
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
@@ -233,12 +215,6 @@ table Fact_Sales
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column DEPT_SOURCE = [dept_name] & [DATA_SOURCE]
|
||||
lineageTag: d633ff86-610c-4194-9637-0943ed386d75
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column DEPT_NAME
|
||||
dataType: string
|
||||
lineageTag: 55ee1c72-c8d5-4bfc-8e89-bfec08ada73c
|
||||
@@ -272,18 +248,6 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column HP_SOURCE = [AIA_HP_FLAG] & [DATA_SOURCE]
|
||||
lineageTag: 70317408-2faf-4425-a64c-912904705571
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column INST_SOURCE = [INST_CODE] & [DATA_SOURCE]
|
||||
lineageTag: a4bfd8bf-f30f-4d48-9d28-6e3d6fb2023f
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column H_LEVEL
|
||||
dataType: int64
|
||||
lineageTag: 93973569-c447-41e6-b741-672a6539d97f
|
||||
@@ -310,24 +274,6 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_SOURCE = [PRESCRIPTION_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: f7a5c002-152a-4f10-b177-ef6b5cc21719
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSETYPE_SOURCE = [REIMBURSE_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: beb9f5b1-422d-4432-9d52-5083dad9f0db
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSE_SOURCE = [REIMBURSE] & [DATA_SOURCE]
|
||||
lineageTag: 02bac298-0bb2-44d6-9c74-9bf37f75af03
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_TYPE
|
||||
dataType: string
|
||||
lineageTag: 45ea0f30-12b1-4e20-93ea-e5cb2d06828a
|
||||
@@ -564,6 +510,78 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_TYPE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 430d4e99-08f2-4ded-a21c-4e52d19caf84
|
||||
summarizeBy: none
|
||||
sourceColumn: STORE_TYPE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_PLATFORM
|
||||
dataType: string
|
||||
lineageTag: 757ab79c-ffaa-40b9-a2db-44a977ff1b41
|
||||
summarizeBy: none
|
||||
sourceColumn: STORE_PLATFORM
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSETYPE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: ce0f0ae2-6cf9-4ecb-876e-720b5d09bfed
|
||||
summarizeBy: none
|
||||
sourceColumn: REIMBURSETYPE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 95c84fd0-f40c-4473-9bae-95e405df3c53
|
||||
summarizeBy: none
|
||||
sourceColumn: REIMBURSE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_SOURCE
|
||||
dataType: string
|
||||
lineageTag: e04b9537-3b7f-4ec8-aedc-07c077e73269
|
||||
summarizeBy: none
|
||||
sourceColumn: PRESCRIPTION_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM_TYPE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 9c2d6c1c-e17c-4f94-aaa6-41e9d5065656
|
||||
summarizeBy: none
|
||||
sourceColumn: PLATFORM_TYPE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column DEPT_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 2e332296-d864-4799-b97c-3d6fb4066702
|
||||
summarizeBy: none
|
||||
sourceColumn: DEPT_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column INST_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 3c319b8d-3dfe-4a24-981e-d5810532af61
|
||||
summarizeBy: none
|
||||
sourceColumn: INST_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column HP_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 5c652aa6-ab3e-4bca-982d-9d38f6bef113
|
||||
summarizeBy: none
|
||||
sourceColumn: HP_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Fact_Sales = m
|
||||
mode: import
|
||||
queryGroup: Fact_Sales
|
||||
@@ -610,6 +628,16 @@ table Fact_Sales
|
||||
CONCAT(AUDIT_COD,DATA_SOURCE) AS AUDIT_SOURCE,
|
||||
CONCAT(AUDIT_COD,DATA_SOURCE,'' ) AS AUDIT_KEY,
|
||||
CONCAT(MARKET,CLASS,DATA_SOURCE) AS CLASS_KEY,
|
||||
|
||||
CONCAT(STORE_TYPE,DATA_SOURCE) AS STORE_TYPE_SOURCE,
|
||||
CONCAT(STORE_TYPE,'-',PLATFORM_TYPE) AS STORE_PLATFORM,
|
||||
CONCAT(REIMBURSE_TYPE,DATA_SOURCE) AS REIMBURSETYPE_SOURCE,
|
||||
CONCAT(REIMBURSE,DATA_SOURCE) AS REIMBURSE_SOURCE,
|
||||
CONCAT(PRESCRIPTION_TYPE,DATA_SOURCE) AS PRESCRIPTION_SOURCE,
|
||||
CONCAT(PLATFORM_TYPE,DATA_SOURCE) AS PLATFORM_TYPE_SOURCE,
|
||||
CONCAT(dept_name,DATA_SOURCE) AS DEPT_SOURCE,
|
||||
CONCAT(INST_CODE,DATA_SOURCE) AS INST_SOURCE,
|
||||
CONCAT(AIA_HP_FLAG,DATA_SOURCE) AS HP_SOURCE,
|
||||
-------------------------------------
|
||||
--Retail藏数逻辑标签------------------
|
||||
PACK_FLAG,
|
||||
@@ -645,13 +673,10 @@ table Fact_Sales
|
||||
MERGED_DATA_DTP_OTHERS,
|
||||
EGFR_FLAG,
|
||||
-------------------------------------
|
||||
CORP_COD
|
||||
NULL AS CORP_COD
|
||||
from
|
||||
DM.DM_TF_EXT_UNIONALL_SALES_MAPPING
|
||||
--where
|
||||
--DATA_SOURCE = 'THC(Quarterly)'
|
||||
--and yyyymm >= 202501
|
||||
"
|
||||
"& Fact_Sales_SQL_limit
|
||||
& UsingLimit,
|
||||
null,
|
||||
[
|
||||
|
||||
@@ -209,30 +209,6 @@ table Fact_Sales_THC
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PACK_CODE
|
||||
dataType: string
|
||||
lineageTag: 1aca511a-879e-45c6-b8fb-9684c9e51a2f
|
||||
summarizeBy: none
|
||||
sourceColumn: PACK_CODE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CORP_CODE
|
||||
dataType: string
|
||||
lineageTag: 188469e1-d875-4fcb-9c55-e86cb6badfc8
|
||||
summarizeBy: none
|
||||
sourceColumn: CORP_CODE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AUDIT_CODE
|
||||
dataType: string
|
||||
lineageTag: 5fbae632-435b-48a2-8f93-e23eb7afd177
|
||||
summarizeBy: none
|
||||
sourceColumn: AUDIT_CODE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CMPS_FLAG
|
||||
dataType: string
|
||||
lineageTag: 565b34fe-1d3d-4708-92b1-75f283e405ff
|
||||
@@ -385,24 +361,6 @@ table Fact_Sales_THC
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column ETL_INSERT_DT
|
||||
dataType: dateTime
|
||||
formatString: General Date
|
||||
lineageTag: 8f45d181-1858-4c13-a9f7-0cb2ca77c429
|
||||
summarizeBy: none
|
||||
sourceColumn: ETL_INSERT_DT
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column ETL_UPDATE_DT
|
||||
dataType: dateTime
|
||||
formatString: General Date
|
||||
lineageTag: 16b492ce-7b45-47da-9f75-f7a092cde75b
|
||||
summarizeBy: none
|
||||
sourceColumn: ETL_UPDATE_DT
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column MARKET_KEY
|
||||
dataType: string
|
||||
lineageTag: 7827470a-6fd4-49c7-b432-75d6ce8986cb
|
||||
@@ -411,6 +369,30 @@ table Fact_Sales_THC
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PACK_COD
|
||||
dataType: string
|
||||
lineageTag: fe7d5135-41de-4f1a-af98-22b14a760dfa
|
||||
summarizeBy: none
|
||||
sourceColumn: PACK_COD
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CORP_COD
|
||||
dataType: string
|
||||
lineageTag: 57a11780-70d7-4454-a8e7-ba7fae398261
|
||||
summarizeBy: none
|
||||
sourceColumn: CORP_COD
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AUDIT_COD
|
||||
dataType: string
|
||||
lineageTag: b4cf1c2e-9d9a-4101-b09c-988725796e51
|
||||
summarizeBy: none
|
||||
sourceColumn: AUDIT_COD
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Fact_Sales_THC = m
|
||||
mode: import
|
||||
queryGroup: Fact_Sales
|
||||
@@ -428,7 +410,48 @@ table Fact_Sales_THC
|
||||
]
|
||||
){[Name = CatalogName, Kind = "Database"]}[Data],
|
||||
"
|
||||
SELECT *,CONCAT(MARKET,DATA_SOURCE) MARKET_KEY FROM DM.dm_tf_ext_thc_market_sales_cht
|
||||
SELECT
|
||||
MARKET,
|
||||
KEY_COMPETITOR,
|
||||
CLASS,
|
||||
YYYYMM,
|
||||
PACK_CODE AS PACK_COD,
|
||||
CORP_CODE AS CORP_COD,
|
||||
AUDIT_CODE AS AUDIT_COD,
|
||||
PLATFORM_TYPE,
|
||||
STORE_NAME,
|
||||
STORE_TYPE,
|
||||
REGION_TYPE,
|
||||
DATA_SOURCE,
|
||||
PACK_FLAG,
|
||||
PROD_FLAG,
|
||||
DTP_FLAG,
|
||||
CMPS_FLAG,
|
||||
NEW_CODE,
|
||||
INST_CODE,
|
||||
AIA_HP_FLAG,
|
||||
DEPT_NAME,
|
||||
H_LEVEL,
|
||||
REIMBURSE,
|
||||
REIMBURSE_TYPE,
|
||||
PRESCRIPTION_TYPE,
|
||||
PRESCRIPTION,
|
||||
PRESCRIPTION_LY,
|
||||
VA,
|
||||
UT,
|
||||
CU,
|
||||
PT,
|
||||
SALES_UNIT_CAL,
|
||||
SALES_UNIT_CAL_LY,
|
||||
SALES_VALUE_CAL,
|
||||
SALES_VALUE_CAL_LY,
|
||||
CONUTING_UNIT,
|
||||
CONUTING_UNIT_LY,
|
||||
PDOT,
|
||||
PDOT_LY,
|
||||
CONCAT(MARKET, DATA_SOURCE) MARKET_KEY
|
||||
FROM
|
||||
DM.dm_tf_ext_thc_market_sales_cht
|
||||
"
|
||||
& UsingLimit,
|
||||
null,
|
||||
@@ -440,7 +463,7 @@ table Fact_Sales_THC
|
||||
|
||||
annotation PBI_NavigationStepName = 导航
|
||||
|
||||
annotation PBI_ResultType = Exception
|
||||
annotation PBI_ResultType = Table
|
||||
|
||||
annotation TabularEditor_TableGroup = 05_FactTable
|
||||
|
||||
|
||||
@@ -539,133 +539,7 @@ table 'Measure THC'
|
||||
displayFolder: 01.Sales
|
||||
lineageTag: 0816b80a-c02d-4d15-853d-1abb961b1488
|
||||
|
||||
measure 'External.Sales.MTH.MID_THC5' = ```
|
||||
|
||||
VAR DS = SELECTEDVALUE ( Dim_DataSource[SOURCENAME] )
|
||||
VAR DS1 = SELECTEDVALUE(Dim_DataSource[DATA_SOURCE])
|
||||
VAR MKT_FLAG =
|
||||
SWITCH(TRUE(),
|
||||
ISFILTERED(Dim_Market),
|
||||
MAX(Dim_Market[MKT_FLAG]),
|
||||
ISFILTERED(Dim_BrandDefaultMKT),
|
||||
CALCULATE(MAX(Dim_BrandDefaultMKT[MKT_FLAG]),Dim_BrandDefaultMKT[DATA_SOURCE] = DS1),
|
||||
0)
|
||||
VAR PROD_FLAG =
|
||||
SWITCH(TRUE(),
|
||||
ISFILTERED(Dim_Market),
|
||||
MAX(Dim_Market[PRD_FLAG]),
|
||||
ISFILTERED(Dim_BrandDefaultMKT),
|
||||
CALCULATE(MAX(Dim_BrandDefaultMKT[PRD_FLAG]),Dim_BrandDefaultMKT[DATA_SOURCE] = DS1),
|
||||
0)
|
||||
RETURN
|
||||
SWITCH (
|
||||
TRUE (),
|
||||
//若选择Molecule,选择地理,且市场是品牌报告里面的市场
|
||||
--ISFILTERED(Dim_IsTarget) &&
|
||||
// NOT ISFILTERED(Dim_Market) && NOT ISFILTERED(Dim_BrandDefaultMKT),BLANK(),
|
||||
ISFILTERED(Dim_CoreDept) && NOT ISFILTERED(Dim_Market) && NOT ISFILTERED(Dim_BrandDefaultMKT),BLANK(),
|
||||
DS IN {"Retail","EC"} && MKT_FLAG = 1
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_DES_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& ISFILTERED(Dim_Geo) && ( ISFILTERED ( Dim_PackInfo[MOLECULE_CODE_DESC] )
|
||||
|| ISFILTERED ( Dim_PackInfo[MOLECULE_DES_C] ) ||ISFILTERED ( Dim_PackInfo[CMPS_COD] )
|
||||
|| ISFILTERED ( Dim_PackInfo[CMPS_DES] ) || ISFILTERED ( Dim_PackInfo[CMPS_DES_C] )),
|
||||
[External.Sales.MTH_THC_4],
|
||||
|
||||
//除开特定市场外,其余的retail,针对于class,选择地理或org维度,值为空
|
||||
DS = "Retail" && (ISFILTERED(Dim_Geo) || ISFILTERED(Dim_Org)) && ISFILTERED(Dim_Class)
|
||||
&& (ISFILTERED(Dim_Market) || ISFILTERED(Dim_BrandDefaultMKT)) && MKT_FLAG = 0,BLANK(),
|
||||
|
||||
//选择市场,只出现品牌报告里面的有市场;
|
||||
DS = "Retail" && (ISFILTERED(Dim_Geo) || ISFILTERED(Dim_Org))
|
||||
&& (ISFILTERED(Dim_Market) || ISFILTERED(Dim_BrandDefaultMKT)) && PROD_FLAG = 0,BLANK(),
|
||||
|
||||
--若不选pack,用于计算class相关KPI
|
||||
DS IN {"Retail","EC"}
|
||||
&& (ISFILTERED ( Dim_Geo ) || ISFILTERED ( Dim_Org ))
|
||||
&& NOT ISFILTERED(Dim_PackInfo),
|
||||
[External.Sales.MTH_THC_4],
|
||||
|
||||
//若选择Molecule,没选择地理
|
||||
DS IN {"Retail","EC"} && NOT ISFILTERED(Dim_Geo) && NOT ISFILTERED(Dim_Org)
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_DES_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& ( ISFILTERED ( Dim_PackInfo[MOLECULE_CODE_DESC] )
|
||||
|| ISFILTERED ( Dim_PackInfo[MOLECULE_DES_C] ) ||ISFILTERED ( Dim_PackInfo[CMPS_COD] )
|
||||
|| ISFILTERED ( Dim_PackInfo[CMPS_DES] ) || ISFILTERED ( Dim_PackInfo[CMPS_DES_C] )),
|
||||
[External.Sales.MTH_THC_4],
|
||||
|
||||
//若选择Molecule,选择地理
|
||||
DS IN {"Retail","EC"}
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_DES_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& ( ISFILTERED ( Dim_PackInfo[MOLECULE_CODE_DESC] )
|
||||
|| ISFILTERED ( Dim_PackInfo[MOLECULE_DES_C] ) ||ISFILTERED ( Dim_PackInfo[CMPS_COD] )
|
||||
|| ISFILTERED ( Dim_PackInfo[CMPS_DES] ) || ISFILTERED ( Dim_PackInfo[CMPS_DES_C] )),
|
||||
CALCULATE (
|
||||
[External.Sales.MTH_THC_4]
|
||||
// ,
|
||||
// Fact_Sales_THC[CMPS_FLAG] = 1
|
||||
),
|
||||
|
||||
//若选择BRAND,没有选择地理
|
||||
DS IN {"Retail","EC"}
|
||||
&& NOT ISFILTERED ( Dim_Geo ) && NOT ISFILTERED ( Dim_Org )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& (ISFILTERED ( Dim_PackInfo[PROD_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PROD_DES] ) || ISFILTERED ( Dim_PackInfo[PROD_DES_C] )),
|
||||
CALCULATE (
|
||||
[External.Sales.MTH_THC_4],
|
||||
Fact_Sales_THC[PROD_FLAG] IN {1, 2}
|
||||
),
|
||||
|
||||
//若选择BRAND,选择地理
|
||||
DS IN {"Retail","EC"}
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& (ISFILTERED ( Dim_PackInfo[PROD_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PROD_DES] ) || ISFILTERED ( Dim_PackInfo[PROD_DES_C] )),
|
||||
CALCULATE (
|
||||
[External.Sales.MTH_THC_4]
|
||||
// ,
|
||||
// Fact_Sales_THC[GEO_FLAG] = 1
|
||||
),
|
||||
|
||||
//若选择PACKAGE,不选择地理维度,1表示pack+省份数据;2表示pack+全国的数据
|
||||
DS IN {"Retail","EC"} && NOT ISFILTERED ( Dim_Org ) && NOT ISFILTERED ( Dim_Geo )
|
||||
&& (ISFILTERED ( Dim_PackInfo[PACK_DES] ) || ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PACK_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )),
|
||||
CALCULATE (
|
||||
[External.Sales.MTH_THC_4]
|
||||
// ,
|
||||
// Fact_Sales_THC[PACK_FLAG] IN { 1, 2 }
|
||||
),
|
||||
|
||||
|
||||
//若选择PACKAGE,且省份维度不是全国
|
||||
DS IN {"Retail","EC"}
|
||||
&& (ISFILTERED ( Dim_PackInfo[PACK_DES] ) || ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PACK_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )),
|
||||
CALCULATE (
|
||||
[External.Sales.MTH_THC_4]
|
||||
// ,
|
||||
// Fact_Sales_THC[PACK_FLAG] = 1
|
||||
),
|
||||
[External.Sales.MTH_THC_4]
|
||||
)
|
||||
```
|
||||
measure 'External.Sales.MTH.MID_THC5' = [External.Sales.MTH_THC_4]
|
||||
displayFolder: 01.Sales
|
||||
lineageTag: 8de3068e-0b94-4eb3-b1cc-c063a3368d7e
|
||||
|
||||
@@ -1080,129 +954,7 @@ table 'Measure THC'
|
||||
displayFolder: 02.Sales LY
|
||||
lineageTag: 1795081a-b035-42ff-85d9-b667f1a563ab
|
||||
|
||||
measure 'External.Sales.LY.MTH.MID_THC5' = ```
|
||||
|
||||
VAR DS = SELECTEDVALUE ( Dim_DataSource[SOURCENAME] )
|
||||
VAR DS1 = SELECTEDVALUE(Dim_DataSource[DATA_SOURCE])
|
||||
VAR MKT_FLAG =
|
||||
SWITCH(TRUE(),
|
||||
ISFILTERED(Dim_Market),
|
||||
MAX(Dim_Market[MKT_FLAG]),
|
||||
ISFILTERED(Dim_BrandDefaultMKT),
|
||||
CALCULATE(MAX(Dim_BrandDefaultMKT[MKT_FLAG]),Dim_BrandDefaultMKT[DATA_SOURCE] = DS1),
|
||||
0)
|
||||
VAR PROD_FLAG =
|
||||
SWITCH(TRUE(),
|
||||
ISFILTERED(Dim_Market),
|
||||
MAX(Dim_Market[PRD_FLAG]),
|
||||
ISFILTERED(Dim_BrandDefaultMKT),
|
||||
CALCULATE(MAX(Dim_BrandDefaultMKT[PRD_FLAG]),Dim_BrandDefaultMKT[DATA_SOURCE] = DS1),
|
||||
0)
|
||||
|
||||
RETURN
|
||||
SWITCH (
|
||||
TRUE (),
|
||||
// ISFILTERED(Dim_IsTarget) && NOT ISFILTERED(Dim_Market) && NOT ISFILTERED(Dim_BrandDefaultMKT),BLANK(),
|
||||
ISFILTERED(Dim_CoreDept) && NOT ISFILTERED(Dim_Market) && NOT ISFILTERED(Dim_BrandDefaultMKT),BLANK(),
|
||||
//若选择地理,且省份维度不是全国
|
||||
DS IN {"Retail","EC"} && MKT_FLAG = 1
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_DES_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& ISFILTERED(Dim_Geo) && ( ISFILTERED ( Dim_PackInfo[MOLECULE_CODE_DESC] )
|
||||
|| ISFILTERED ( Dim_PackInfo[MOLECULE_DES_C] ) ||ISFILTERED ( Dim_PackInfo[CMPS_COD] )
|
||||
|| ISFILTERED ( Dim_PackInfo[CMPS_DES] ) || ISFILTERED ( Dim_PackInfo[CMPS_DES_C] )),
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
|
||||
//除开特定市场外,其余的retail,针对于class,选择地理或org维度,值为空
|
||||
DS = "Retail" && (ISFILTERED(Dim_Geo) || ISFILTERED(Dim_Org)) && ISFILTERED(Dim_Class)
|
||||
&& (ISFILTERED(Dim_Market) || ISFILTERED(Dim_BrandDefaultMKT)) && MKT_FLAG = 0,BLANK(),
|
||||
|
||||
//选择市场,只出现品牌报告里面的有市场;
|
||||
DS = "Retail" && (ISFILTERED(Dim_Geo) || ISFILTERED(Dim_Org))
|
||||
&& (ISFILTERED(Dim_Market) || ISFILTERED(Dim_BrandDefaultMKT)) && PROD_FLAG = 0,BLANK(),
|
||||
|
||||
--若不选pack,用于计算class相关KPI
|
||||
DS IN {"Retail","EC"}
|
||||
&& (ISFILTERED ( Dim_Geo ) || ISFILTERED ( Dim_Org ))
|
||||
&& NOT ISFILTERED(Dim_PackInfo),
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
|
||||
//若选择Molecule,没选择地理
|
||||
DS IN {"Retail","EC"} && NOT ISFILTERED(Dim_Geo) && NOT ISFILTERED(Dim_Org)
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_DES_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& ( ISFILTERED ( Dim_PackInfo[MOLECULE_CODE_DESC] )
|
||||
|| ISFILTERED ( Dim_PackInfo[MOLECULE_DES_C] ) ||ISFILTERED ( Dim_PackInfo[CMPS_COD] )
|
||||
|| ISFILTERED ( Dim_PackInfo[CMPS_DES] ) || ISFILTERED ( Dim_PackInfo[CMPS_DES_C] )),
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
|
||||
//若选择Molecule,选择地理
|
||||
DS IN {"Retail","EC"}
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_DES_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& ( ISFILTERED ( Dim_PackInfo[MOLECULE_CODE_DESC] )
|
||||
|| ISFILTERED ( Dim_PackInfo[MOLECULE_DES_C] ) ||ISFILTERED ( Dim_PackInfo[CMPS_COD] )
|
||||
|| ISFILTERED ( Dim_PackInfo[CMPS_DES] ) || ISFILTERED ( Dim_PackInfo[CMPS_DES_C] )),
|
||||
CALCULATE (
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
Fact_Sales[CMPS_FLAG] = 1
|
||||
),
|
||||
|
||||
//若选择BRAND,没有选择地理
|
||||
DS IN {"Retail","EC"}
|
||||
&& NOT ISFILTERED ( Dim_Geo ) && NOT ISFILTERED ( Dim_Org )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] ) && NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] ) && NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& (ISFILTERED ( Dim_PackInfo[PROD_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PROD_DES] ) || ISFILTERED ( Dim_PackInfo[PROD_DES_C] )),
|
||||
CALCULATE (
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
Fact_Sales[PROD_FLAG] IN {1, 2}
|
||||
),
|
||||
|
||||
//若选择BRAND,选择地理
|
||||
DS IN {"Retail","EC"}
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_COD] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_DES] )
|
||||
&& NOT ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
&& (ISFILTERED ( Dim_PackInfo[PROD_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_CORP_C] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PROD_DES] ) || ISFILTERED ( Dim_PackInfo[PROD_DES_C] )),
|
||||
CALCULATE (
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
Fact_Sales[GEO_FLAG] = 1
|
||||
),
|
||||
|
||||
//若选择PACKAGE,不选择地理维度,1表示pack+省份数据;2表示pack+全国的数据
|
||||
DS IN {"Retail","EC"} && NOT ISFILTERED ( Dim_Org ) && NOT ISFILTERED ( Dim_Geo )
|
||||
&& (ISFILTERED ( Dim_PackInfo[PACK_DES] ) || ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PACK_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )),
|
||||
CALCULATE (
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
Fact_Sales[PACK_FLAG] IN { 1, 2 }
|
||||
),
|
||||
|
||||
|
||||
//若选择PACKAGE,且省份维度不是全国
|
||||
DS IN {"Retail","EC"}
|
||||
&& (ISFILTERED ( Dim_PackInfo[PACK_DES] ) || ISFILTERED ( Dim_PackInfo[PACK_LCH] )
|
||||
|| ISFILTERED ( Dim_PackInfo[PACK_COD] ) || ISFILTERED ( Dim_PackInfo[PROD_PACK_CORP] )),
|
||||
CALCULATE (
|
||||
[External.Sales.LY.MTH_THC4],
|
||||
Fact_Sales[PACK_FLAG] = 1
|
||||
),
|
||||
[External.Sales.LY.MTH_THC4]
|
||||
)
|
||||
```
|
||||
measure 'External.Sales.LY.MTH.MID_THC5' = [External.Sales.LY.MTH_THC4]
|
||||
displayFolder: 02.Sales LY
|
||||
lineageTag: 633605a2-7fd6-416a-979d-2cfef8156e53
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -918,26 +918,13 @@
|
||||
"ordinal": 1,
|
||||
"scrollPosition": {
|
||||
"x": 0,
|
||||
"y": 373.33516069697043
|
||||
"y": 0
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"location": {
|
||||
"x": 1616.2918499734515,
|
||||
"y": 784.61189978282664
|
||||
},
|
||||
"nodeIndex": "Fact_Sales_NIAD",
|
||||
"nodeLineageTag": "5ce66265-a4ef-457b-9400-e0d76042498d",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 19
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1175.6292145416671,
|
||||
"y": 419.86884221163768
|
||||
"x": 1193.6470799771166,
|
||||
"y": 612.00909991030812
|
||||
},
|
||||
"nodeIndex": "Dim_DataSource",
|
||||
"nodeLineageTag": "8a47e04a-d7ca-4a96-bf05-10c9cff59288",
|
||||
@@ -945,56 +932,15 @@
|
||||
"height": 176,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 12
|
||||
"zIndex": 10
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1572.4075590597267,
|
||||
"y": 483.61689253212558
|
||||
"x": 749.23438869196207,
|
||||
"y": -50
|
||||
},
|
||||
"nodeIndex": "Dim_PackInfo",
|
||||
"nodeLineageTag": "f420be02-8dc1-467f-8e0e-a8231e8b72e6",
|
||||
"size": {
|
||||
"height": 176,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 20,
|
||||
"expandedHeight": 300
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 924.20948938446168,
|
||||
"y": 850.85137630243
|
||||
},
|
||||
"nodeIndex": "Fact_Sales",
|
||||
"nodeLineageTag": "c6bdcb23-6f0c-4bd2-98b6-b3fd012d5ba6",
|
||||
"size": {
|
||||
"height": 512,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 18,
|
||||
"expandedHeight": 300
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 646.55835289432753,
|
||||
"y": 459.78008771345662
|
||||
},
|
||||
"nodeIndex": "Dim_Geo",
|
||||
"nodeLineageTag": "aeec8d5d-c86c-4957-8592-3a153f08c3a8",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 15
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 0,
|
||||
"y": 546.49338518049808
|
||||
},
|
||||
"nodeIndex": "Dim_Calendar",
|
||||
"nodeLineageTag": "b54e7974-59f5-4b19-b987-f439b32f640d",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
@@ -1003,8 +949,47 @@
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 302.00962555210663,
|
||||
"y": 1074.5197583343238
|
||||
"x": 622.80488712282977,
|
||||
"y": 529.837077125478
|
||||
},
|
||||
"nodeIndex": "Fact_Sales",
|
||||
"nodeLineageTag": "c6bdcb23-6f0c-4bd2-98b6-b3fd012d5ba6",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 18
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1273.5318996557298,
|
||||
"y": 259.3339814607607
|
||||
},
|
||||
"nodeIndex": "Dim_Geo",
|
||||
"nodeLineageTag": "aeec8d5d-c86c-4957-8592-3a153f08c3a8",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 13
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 50,
|
||||
"y": 816.007468034567
|
||||
},
|
||||
"nodeIndex": "Dim_Calendar",
|
||||
"nodeLineageTag": "b54e7974-59f5-4b19-b987-f439b32f640d",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 15
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 919.4086061629705,
|
||||
"y": 1277.7320027702353
|
||||
},
|
||||
"nodeIndex": "Dim_HPFlag",
|
||||
"nodeLineageTag": "e281e266-d03f-45f7-9f2f-9ff74984c501",
|
||||
@@ -1016,8 +1001,8 @@
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 382.4664552674783,
|
||||
"y": 1385.5805600379983
|
||||
"x": 1630.3080435161082,
|
||||
"y": 338.0240705621186
|
||||
},
|
||||
"nodeIndex": "Dim_InsSalesType",
|
||||
"nodeLineageTag": "a283b30f-6bf9-4841-8c06-8b4b27572f51",
|
||||
@@ -1029,8 +1014,8 @@
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 75.533104487331457,
|
||||
"y": 1171.3101753546034
|
||||
"x": 919.40258989628694,
|
||||
"y": 1073.77427739801
|
||||
},
|
||||
"nodeIndex": "Dim_PlatformMID",
|
||||
"nodeLineageTag": "1cd2fd49-62d1-49ca-ac98-218be929baae",
|
||||
@@ -1042,8 +1027,8 @@
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 451.7573005244758,
|
||||
"y": 1124
|
||||
"x": 336.97245492727438,
|
||||
"y": 702.77552127739159
|
||||
},
|
||||
"nodeIndex": "Dim_StoreTypeMID",
|
||||
"nodeLineageTag": "d6ca2686-554d-4d78-a475-7787f1325ec0",
|
||||
@@ -1051,12 +1036,12 @@
|
||||
"height": 152,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 5
|
||||
"zIndex": 4
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 225.18788268546086,
|
||||
"y": 1278.5311514897637
|
||||
"x": 50.697016225196421,
|
||||
"y": 534.24456287105033
|
||||
},
|
||||
"nodeIndex": "Dim_Dept",
|
||||
"nodeLineageTag": "d4fade06-0fa3-4c36-ac23-2abf52ad9f5e",
|
||||
@@ -1064,12 +1049,12 @@
|
||||
"height": 200,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 6
|
||||
"zIndex": 5
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1849.2436007193912,
|
||||
"y": 1498.6292049878475
|
||||
"x": 1206.4659127349657,
|
||||
"y": 1141.4258732573708
|
||||
},
|
||||
"nodeIndex": "Dim_PrescriptionSource",
|
||||
"nodeLineageTag": "953c3d2a-0eeb-4153-8348-907f82bf6413",
|
||||
@@ -1077,12 +1062,12 @@
|
||||
"height": 152,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 14
|
||||
"zIndex": 12
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1831.3935552678761,
|
||||
"y": 1393.194532216427
|
||||
"x": 247.78764562480046,
|
||||
"y": 1168.971301646538
|
||||
},
|
||||
"nodeIndex": "Dim_Reimburse",
|
||||
"nodeLineageTag": "12b7ce8a-0cd1-49b2-8dc4-bdc0b7ff9a7d",
|
||||
@@ -1090,12 +1075,12 @@
|
||||
"height": 152,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 8
|
||||
"zIndex": 6
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 857.30605373144476,
|
||||
"y": 1406.1750892344508
|
||||
"x": 462.21440909434796,
|
||||
"y": 131.13832893982135
|
||||
},
|
||||
"nodeIndex": "Dim_ReimburseType",
|
||||
"nodeLineageTag": "d90fa524-ebdf-41f4-a2c3-b79657f2e782",
|
||||
@@ -1103,12 +1088,12 @@
|
||||
"height": 152,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 9
|
||||
"zIndex": 7
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1416.5026133230358,
|
||||
"y": 1270.5643585526873
|
||||
"x": 1455.7008253958209,
|
||||
"y": 840.76540031593527
|
||||
},
|
||||
"nodeIndex": "Dim_Institution",
|
||||
"nodeLineageTag": "c0020314-ede0-4bf5-af71-1f63368ac6aa",
|
||||
@@ -1116,12 +1101,12 @@
|
||||
"height": 248,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 10
|
||||
"zIndex": 8
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 316.49389327834888,
|
||||
"y": 454.945782112678
|
||||
"x": 1557.8246228832991,
|
||||
"y": 588.10442727846089
|
||||
},
|
||||
"nodeIndex": "Dim_GeoKey",
|
||||
"nodeLineageTag": "88fbe5ba-558f-4580-8d08-19e6a3e5be6a",
|
||||
@@ -1129,12 +1114,12 @@
|
||||
"height": 200,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 16
|
||||
"zIndex": 14
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1590.0847885580431,
|
||||
"y": 1592.7799765145969
|
||||
"x": 749.23275432433547,
|
||||
"y": 302.15186530339724
|
||||
},
|
||||
"nodeIndex": "Dim_DataSource_ForRLS",
|
||||
"nodeLineageTag": "8a0dec48-e4ca-410e-bfb9-022ad263205c",
|
||||
@@ -1142,12 +1127,12 @@
|
||||
"height": 176,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 11
|
||||
"zIndex": 9
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 1225.6802147471844,
|
||||
"y": 1476.0064281397408
|
||||
"x": 908.398488250178,
|
||||
"y": 613.14005982127651
|
||||
},
|
||||
"nodeIndex": "Dim_MergeDataSource",
|
||||
"nodeLineageTag": "b9ec943e-c3e6-4334-a98c-527f4e55ccd6",
|
||||
@@ -1155,11 +1140,11 @@
|
||||
"height": 104,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 13
|
||||
"zIndex": 11
|
||||
}
|
||||
],
|
||||
"name": "Fact_Sales_NIAD",
|
||||
"zoomValue": 79.553182037699813,
|
||||
"zoomValue": 74.126497275900064,
|
||||
"pinKeyFieldsToTop": false,
|
||||
"showExtraHeaderInfo": false,
|
||||
"hideKeyFieldsWhenCollapsed": false,
|
||||
@@ -1653,7 +1638,7 @@
|
||||
"ordinal": 4,
|
||||
"scrollPosition": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
"y": 200
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
@@ -1667,7 +1652,7 @@
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 11
|
||||
"zIndex": 10
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
@@ -1697,8 +1682,8 @@
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 823.093692643455,
|
||||
"y": 774.72961318474665
|
||||
"x": 877.093692643455,
|
||||
"y": 933.72961318474665
|
||||
},
|
||||
"nodeIndex": "Dim_PackInfo",
|
||||
"nodeLineageTag": "f420be02-8dc1-467f-8e0e-a8231e8b72e6",
|
||||
@@ -1788,8 +1773,8 @@
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 820,
|
||||
"y": 894
|
||||
"x": 1255,
|
||||
"y": 813
|
||||
},
|
||||
"nodeIndex": "Dim_Market",
|
||||
"nodeLineageTag": "e93174e2-bfca-4d29-bee7-23d72512e194",
|
||||
@@ -1797,7 +1782,7 @@
|
||||
"height": 296,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 10
|
||||
"zIndex": 11
|
||||
}
|
||||
],
|
||||
"name": "Fact_Sales_THC",
|
||||
@@ -1806,62 +1791,8 @@
|
||||
"showExtraHeaderInfo": false,
|
||||
"hideKeyFieldsWhenCollapsed": false,
|
||||
"tablesLocked": false
|
||||
},
|
||||
{
|
||||
"ordinal": 5,
|
||||
"scrollPosition": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"location": {
|
||||
"x": 348,
|
||||
"y": 492
|
||||
},
|
||||
"nodeIndex": "Dim_CoreDept",
|
||||
"nodeLineageTag": "440f02af-03a6-4cd9-b5ab-4b46774f48a9",
|
||||
"size": {
|
||||
"height": 224,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 2
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 50,
|
||||
"y": -50
|
||||
},
|
||||
"nodeIndex": "Dim_Market",
|
||||
"nodeLineageTag": "e93174e2-bfca-4d29-bee7-23d72512e194",
|
||||
"size": {
|
||||
"height": 296,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 1
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"x": 49,
|
||||
"y": 575
|
||||
},
|
||||
"nodeIndex": "Fact_Sales",
|
||||
"nodeLineageTag": "c6bdcb23-6f0c-4bd2-98b6-b3fd012d5ba6",
|
||||
"size": {
|
||||
"height": 300,
|
||||
"width": 234
|
||||
},
|
||||
"zIndex": 3
|
||||
}
|
||||
],
|
||||
"name": "Layout 1",
|
||||
"zoomValue": 100,
|
||||
"pinKeyFieldsToTop": false,
|
||||
"showExtraHeaderInfo": false,
|
||||
"hideKeyFieldsWhenCollapsed": false,
|
||||
"tablesLocked": false
|
||||
}
|
||||
],
|
||||
"selectedDiagram": "Layout 1",
|
||||
"selectedDiagram": "Fact_Sales_NIAD",
|
||||
"defaultDiagram": "All tables"
|
||||
}
|
||||
Reference in New Issue
Block a user