0402.0
This commit is contained in:
@@ -5,6 +5,7 @@ table 00_KPI
|
||||
SUM ( Fact_Sales[SALES_VALUE_CAL] )
|
||||
|
||||
```
|
||||
displayFolder: Normal
|
||||
lineageTag: 327243a7-d1c4-4efa-bec8-96f85ad40cec
|
||||
|
||||
measure '00.base.cu' =
|
||||
@@ -17,7 +18,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[CONUTING_UNIT] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[CONUTING_UNIT] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[CONUTING_UNIT] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: 9620a79e-793e-465e-b981-40e0e904caa6
|
||||
|
||||
measure '00.base.cu.ly' =
|
||||
@@ -30,7 +31,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[CONUTING_UNIT_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[CONUTING_UNIT_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[CONUTING_UNIT_LY] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: ab799134-acf6-437b-b345-110c5cbab80b
|
||||
|
||||
measure '00.base.pdot' =
|
||||
@@ -43,7 +44,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[PDOT] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[PDOT] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[PDOT] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: 3b437121-0751-4cfd-b746-f2a329a9d31a
|
||||
|
||||
measure '00.base.pdot.ly' =
|
||||
@@ -56,7 +57,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[PDOT_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[PDOT_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[PDOT_LY] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: 33e343f4-c03c-4991-ae88-7fb34d7f0539
|
||||
|
||||
measure '00.base.unit' =
|
||||
@@ -69,7 +70,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[SALES_UNIT_CAL] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[SALES_UNIT_CAL] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[SALES_UNIT_CAL] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: a27f1e7f-c609-4434-8367-8d50a03f3731
|
||||
|
||||
measure '00.base.unit.ly' =
|
||||
@@ -82,7 +83,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[SALES_UNIT_CAL_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[SALES_UNIT_CAL_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[SALES_UNIT_CAL_LY] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: 7d18c9f1-6bd5-483d-b99d-b0439a1d80f6
|
||||
|
||||
measure '00.base.value' =
|
||||
@@ -95,7 +96,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[SALES_VALUE_CAL] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[SALES_VALUE_CAL] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[SALES_VALUE_CAL] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: 7ef37e6e-471d-4535-a462-47c7396708b5
|
||||
|
||||
measure '00.base.value.ly' =
|
||||
@@ -108,7 +109,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[SALES_VALUE_CAL_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[SALES_VALUE_CAL_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[SALES_VALUE_CAL_LY] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: d6584773-a573-4e2c-87a1-96c8e5cd774a
|
||||
|
||||
measure '00.base.prescription.ly' =
|
||||
@@ -121,7 +122,7 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[PRESCRIPTION_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[PRESCRIPTION_LY] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[PRESCRIPTION_LY] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: fbe0a78c-b51b-412b-a005-545af4e3a5b5
|
||||
|
||||
measure '00.base.prescription' =
|
||||
@@ -134,17 +135,17 @@ table 00_KPI
|
||||
//+ SUM ( Fact_Sales_Main_Retail[PRESCRIPTION] )
|
||||
//+ SUM ( Fact_Sales_Main_EC[PRESCRIPTION] )
|
||||
//+ SUM ( Fact_Sales_Main_XH[PRESCRIPTION] )
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: 593c4a0e-9a8f-452a-8838-9cb3267497c1
|
||||
|
||||
measure '00.base.if.countTA' =
|
||||
//COUNTROWS ( ALL ( Dim_MarketTA ) )<>MAX (Config_TA_Countrows[@countrows])
|
||||
FALSE ()
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: a07a34b4-9afd-4471-bd7e-3650c34cbdf9
|
||||
|
||||
measure '00.base.if.countMarket' = COUNTROWS ( VALUES ( Dim_Market[MARKET] ) ) = 1
|
||||
displayFolder: 00base
|
||||
displayFolder: Normal\00base
|
||||
lineageTag: ef825562-6c3a-40f5-bf07-ae628455c45b
|
||||
|
||||
measure '01.CountingUnit' =
|
||||
@@ -175,7 +176,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 2ada3919-acdf-4f6a-b991-7501cbd8a4e7
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -208,7 +209,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 486b7a47-c7c1-4dc6-875d-1468a6c1417f
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -241,7 +242,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: ba02edda-df39-47d9-8fe2-3cdb7cb86b16
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -275,7 +276,7 @@ table 00_KPI
|
||||
)
|
||||
)
|
||||
formatString: 0
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 02a43eda-2716-495c-b32a-045175a75c88
|
||||
|
||||
measure '01.Unit' =
|
||||
@@ -306,7 +307,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 537b917b-4c00-41d7-a02f-1d61497bea1e
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -339,7 +340,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 9df28f96-4fea-45ca-9182-688f772bf2d8
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -372,7 +373,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 3feb36e0-2c49-4481-8616-206b97fb8134
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -405,7 +406,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: e1294fda-25c0-44bd-9572-588e238352ca
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -438,7 +439,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 3470ce23-6b31-410b-8ac6-50e3aad999b3
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -471,7 +472,7 @@ table 00_KPI
|
||||
'0_Measure_CalGroup'[for_measure] = "_allmkt"
|
||||
)
|
||||
)
|
||||
displayFolder: 01
|
||||
displayFolder: Normal\01
|
||||
lineageTag: 9d0e9cf5-2a02-4012-a729-abaa4b4a5a2b
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -496,7 +497,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 21857317-ae56-454f-8e08-3a4c1874ff35
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -521,7 +522,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 972ecad8-dc31-4e4f-a429-acc4c1b93fa9
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -546,7 +547,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 5dc131a2-b621-44d8-a32d-94424bdfc245
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -571,7 +572,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: ae714255-0361-4924-bf9d-eaad87e5b2f0
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -596,7 +597,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 6b37f467-e265-4931-8372-66116c9ad2bb
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -621,7 +622,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 2bd1913b-3039-4677-be2e-34859683e057
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -645,7 +646,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: fbbf5050-d892-4736-b4e4-087c34307a89
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -670,7 +671,7 @@ table 00_KPI
|
||||
------修改时间:2024.11.20
|
||||
------修改内容:除AIA外,其他数据源筛选架构但不选市场时显示为空
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 1359f4b3-be05-4c7d-bfc3-0eed768cd253
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -686,7 +687,7 @@ table 00_KPI
|
||||
)
|
||||
|
||||
```
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 9bd0a77d-aac8-4148-9c85-df90c5c95d2e
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -702,7 +703,7 @@ table 00_KPI
|
||||
)
|
||||
|
||||
```
|
||||
displayFolder: 02
|
||||
displayFolder: Normal\02
|
||||
lineageTag: 34938121-a3e9-4d5c-8180-bb0434ddc32e
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -725,7 +726,7 @@ table 00_KPI
|
||||
------修改时间:2024.6.10
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: adf4c876-0c86-4a7b-b505-a198d6a7753f
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -749,7 +750,7 @@ table 00_KPI
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
formatString: #,0
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: 26fe4b18-1ea2-411e-94c7-3e36e73eb325
|
||||
|
||||
measure 'External.Unit.MTH' =
|
||||
@@ -771,7 +772,7 @@ table 00_KPI
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
formatString: #,0
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: 68d74ae6-59c8-4170-bc6c-1d7adc2d211e
|
||||
|
||||
measure 'External.Unit.LY.MTH' =
|
||||
@@ -792,7 +793,7 @@ table 00_KPI
|
||||
------修改时间:2024.6.10
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: aed844cb-df09-4124-b0dd-1043b18c9db3
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -816,7 +817,7 @@ table 00_KPI
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
formatString: #,0
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: 0ba0c91e-fec7-4b0a-a004-444837015f8e
|
||||
|
||||
measure 'External.PDOT.LY.MTH' =
|
||||
@@ -838,7 +839,7 @@ table 00_KPI
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
formatString: #,0
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: 838247e1-7565-4c27-8f32-7a7be9d201fa
|
||||
|
||||
measure 'External.CountingUnit.MTH' =
|
||||
@@ -860,7 +861,7 @@ table 00_KPI
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
formatString: #,0
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: f11b700c-1265-4f48-903c-a396c3484e8a
|
||||
|
||||
measure 'External.CountingUnit.LY.MTH' =
|
||||
@@ -881,7 +882,7 @@ table 00_KPI
|
||||
------修改时间:2024.6.10
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: ea93613f-c719-47d7-b271-d1e21302fd4e
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -917,7 +918,7 @@ table 00_KPI
|
||||
),
|
||||
SUMX ( Fact_Sales, [PRESCRIPTION_LY] )
|
||||
)
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: f1da4fdc-9ec6-4e0a-9a03-bf6d6eb2b142
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -953,7 +954,7 @@ table 00_KPI
|
||||
),
|
||||
SUMX ( Fact_Sales, [PRESCRIPTION] )
|
||||
)
|
||||
displayFolder: 03
|
||||
displayFolder: Normal\03
|
||||
lineageTag: 6c84cacc-65aa-4cbe-8a58-72427085c72b
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -1028,7 +1029,7 @@ table 00_KPI
|
||||
------修改时间:
|
||||
------修改内容:
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 04
|
||||
displayFolder: Normal\04
|
||||
lineageTag: b6f8ae54-bc7d-4349-887a-2b779d426b32
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -1296,7 +1297,7 @@ table 00_KPI
|
||||
------修改时间:2024.6.10
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
displayFolder: 05
|
||||
displayFolder: Normal\05
|
||||
lineageTag: 0726ecc2-0bf6-43de-a635-c0089856d494
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -1371,7 +1372,7 @@ table 00_KPI
|
||||
------修改时间:
|
||||
------修改内容:
|
||||
----------------------------------------------------------------------------
|
||||
displayFolder: 04
|
||||
displayFolder: Normal\04
|
||||
lineageTag: 0ae3be0e-d367-4516-8679-d18f56f42ccd
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -1624,7 +1625,7 @@ table 00_KPI
|
||||
------修改时间:2024.6.10
|
||||
------修改内容:添加Retail的特殊逻辑处理
|
||||
----------------------------------------------------------------------------*/
|
||||
displayFolder: 05
|
||||
displayFolder: Normal\05
|
||||
lineageTag: 3d5b4e15-ba20-4231-93ac-581e6e436e0f
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
@@ -2091,6 +2092,231 @@ table 00_KPI
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.CU' = SUM ( Fact_Sales_NIAD[CONUTING_UNIT] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: e7134c78-d8eb-4b51-a621-a71934194739
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.CU.LY' = SUM ( Fact_Sales_NIAD[CONUTING_UNIT_LY] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: 6dc0eda0-6f38-4ed7-af8b-2922241500d5
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.PDOT' = SUM ( Fact_Sales_NIAD[CONUTING_UNIT] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: 04b73112-a012-4bab-b05e-774810797bec
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.PDOT.LY' = SUM ( Fact_Sales_NIAD[CONUTING_UNIT_LY] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: 8b95b9d7-235a-4d7e-b6ea-94e79fcce762
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Unit' = SUM ( Fact_Sales_NIAD[SALES_UNIT_CAL] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: 24edaf71-7530-4c6d-929e-4d971a4a0e8b
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Unit.LY' = SUM ( Fact_Sales_NIAD[SALES_UNIT_CAL_LY] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: a4017c61-122d-4af7-8eac-8a5410e92475
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Value' = SUM ( Fact_Sales_NIAD[SALES_VALUE_CAL] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: 5c3ce518-dae6-4095-b5f1-f3c216cadef0
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Value.LY' = SUM ( Fact_Sales_NIAD[SALES_VALUE_CAL_LY] )
|
||||
displayFolder: FreeReport_NIAD\00
|
||||
lineageTag: 9593012e-070a-44a2-a950-93c5ac014837
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '01.Retail.NIAD.CU' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.CU],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.CU]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: f2fbd703-32b4-45c5-8f2f-37b9c6e68908
|
||||
|
||||
measure '01.Retail.NIAD.CU.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.CU.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.CU.LY]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: cd23c4ea-e5b0-4ce3-864f-c45178a9af82
|
||||
|
||||
measure '01.Retail.NIAD.PDOT' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.PDOT],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.PDOT]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: 4c7f667e-7d0a-4fcf-82d2-19fabf18e790
|
||||
|
||||
measure '01.Retail.NIAD.PDOT.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.PDOT.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.PDOT.LY]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: 1dcc6d0b-3a67-45da-b593-c09d2a2f9802
|
||||
|
||||
measure '01.Retail.NIAD.Unit' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Unit],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Unit]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: 99b4674a-cd6d-4621-897d-c3e8831c5210
|
||||
|
||||
measure '01.Retail.NIAD.Unit.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Unit.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Unit.LY]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: 0a81f7dc-01d9-4446-b7fa-1cb30dd57d44
|
||||
|
||||
measure '01.Retail.NIAD.Value' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Value],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Value]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: 792eaa55-a51f-4d28-8aef-f62b69a676e4
|
||||
|
||||
measure '01.Retail.NIAD.Value.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Value.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Value.LY]
|
||||
)
|
||||
displayFolder: FreeReport_NIAD\01
|
||||
lineageTag: 00a3ee30-b5b7-4253-9db4-f0aa80e5b409
|
||||
|
||||
measure 'Retail.NIAD.Sales.LY' =
|
||||
SWITCH (
|
||||
[External.SelectUnit],
|
||||
"RMB", [01.Retail.NIAD.Value.LY],
|
||||
"K RMB", [01.Retail.NIAD.Value.LY] / 1000,
|
||||
"M RMB", [01.Retail.NIAD.Value.LY] / 1000000,
|
||||
"USD", DIVIDE ( [01.Retail.NIAD.Value.LY], [ExchangeRate] ),
|
||||
"K USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value.LY], [ExchangeRate] ) / 1000,
|
||||
"M USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value.LY], [ExchangeRate] )
|
||||
/ 1000000,
|
||||
"Unit", [01.Retail.NIAD.Unit.LY],
|
||||
"K Unit", [01.Retail.NIAD.Unit.LY] / 1000,
|
||||
"M Unit", [01.Retail.NIAD.Unit.LY] / 1000000,
|
||||
"CU", [01.Retail.NIAD.CU.LY],
|
||||
"K CU", [01.Retail.NIAD.CU.LY] / 1000,
|
||||
"M CU", [01.Retail.NIAD.CU.LY] / 1000000,
|
||||
"PDOT", [01.Retail.NIAD.PDOT.LY],
|
||||
"K PDOT", [01.Retail.NIAD.PDOT.LY] / 1000,
|
||||
"M PDOT", [01.Retail.NIAD.PDOT.LY] / 1000000
|
||||
)
|
||||
displayFolder: FreeReport_NIAD
|
||||
lineageTag: 782b8f68-5311-4d58-b8c3-77d0615c723c
|
||||
|
||||
measure 'Retail.NIAD.Sales' =
|
||||
SWITCH (
|
||||
[External.SelectUnit],
|
||||
"RMB", [01.Retail.NIAD.Value],
|
||||
"K RMB", [01.Retail.NIAD.Value] / 1000,
|
||||
"M RMB", [01.Retail.NIAD.Value] / 1000000,
|
||||
"USD", DIVIDE ( [01.Retail.NIAD.Value], [ExchangeRate] ),
|
||||
"K USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value], [ExchangeRate] ) / 1000,
|
||||
"M USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value], [ExchangeRate] ) / 1000000,
|
||||
"Unit", [01.Retail.NIAD.Unit],
|
||||
"K Unit", [01.Retail.NIAD.Unit] / 1000,
|
||||
"M Unit", [01.Retail.NIAD.Unit] / 1000000,
|
||||
"CU", [01.Retail.NIAD.CU],
|
||||
"K CU", [01.Retail.NIAD.CU] / 1000,
|
||||
"M CU", [01.Retail.NIAD.CU] / 1000000,
|
||||
"PDOT", [01.Retail.NIAD.PDOT],
|
||||
"K PDOT", [01.Retail.NIAD.PDOT] / 1000,
|
||||
"M PDOT", [01.Retail.NIAD.PDOT] / 1000000
|
||||
)
|
||||
displayFolder: FreeReport_NIAD
|
||||
lineageTag: c23f7423-669e-4d88-aad1-98352853d75f
|
||||
|
||||
column KPI
|
||||
dataType: string
|
||||
isHidden
|
||||
|
||||
@@ -116,15 +116,131 @@ table Fact_Sales_NIAD
|
||||
summarizeBy: none
|
||||
sourceColumn: DATE_KEY
|
||||
|
||||
changedProperty = DataType
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation UnderlyingDateTimeDataType = Date
|
||||
|
||||
column MARKET
|
||||
dataType: string
|
||||
lineageTag: f71a04d6-91b4-4354-85a7-c38fa2888245
|
||||
summarizeBy: none
|
||||
sourceColumn: MARKET
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column KEY_COMPETITOR
|
||||
dataType: string
|
||||
lineageTag: bd3ef19e-8e3c-4d56-98b4-c88e885ec7db
|
||||
summarizeBy: none
|
||||
sourceColumn: KEY_COMPETITOR
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CLASS
|
||||
dataType: string
|
||||
lineageTag: 1d13435a-a859-4ac1-8957-b99ddab9c41b
|
||||
summarizeBy: none
|
||||
sourceColumn: CLASS
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column VA
|
||||
dataType: double
|
||||
lineageTag: 605d43d2-2d3f-4bb6-a68a-cdbf8530f78c
|
||||
summarizeBy: sum
|
||||
sourceColumn: VA
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column UT
|
||||
dataType: double
|
||||
lineageTag: 4357b9e7-3fb2-44b7-b89d-52c949a01594
|
||||
summarizeBy: sum
|
||||
sourceColumn: UT
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column CU
|
||||
dataType: double
|
||||
lineageTag: ec859260-bbb1-4942-a308-ddeed28ce609
|
||||
summarizeBy: sum
|
||||
sourceColumn: CU
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column PT
|
||||
dataType: double
|
||||
lineageTag: b014fc48-26ce-4291-bbac-49efb08ec3f7
|
||||
summarizeBy: sum
|
||||
sourceColumn: PT
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column PDOT
|
||||
dataType: double
|
||||
lineageTag: 3e1f7977-926d-4364-8e66-7b21252142ad
|
||||
summarizeBy: sum
|
||||
sourceColumn: PDOT
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column PDOT_LY
|
||||
dataType: double
|
||||
lineageTag: c15944f8-f929-4fec-9e12-aa6de850ffd9
|
||||
summarizeBy: sum
|
||||
sourceColumn: PDOT_LY
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column PRESCRIPTION
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: 606836a9-f115-4ba4-8f5a-baa7a143be16
|
||||
summarizeBy: sum
|
||||
sourceColumn: PRESCRIPTION
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_LY
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: bd792513-4f77-47df-861d-5273987fb633
|
||||
summarizeBy: sum
|
||||
sourceColumn: PRESCRIPTION_LY
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column MARKET_SOURCE
|
||||
dataType: string
|
||||
lineageTag: db499061-38c8-450c-a58f-b246b8a04d98
|
||||
summarizeBy: none
|
||||
sourceColumn: MARKET_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CLASS_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 41d82946-9635-4083-8ca0-2c5e3972cde5
|
||||
summarizeBy: none
|
||||
sourceColumn: CLASS_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Fact_Sales_NIAD = m
|
||||
mode: import
|
||||
queryGroup: OLD\FreeReport独有表
|
||||
queryGroup: Fact_Sales
|
||||
source = ```
|
||||
let
|
||||
Source =
|
||||
@@ -140,28 +256,34 @@ table Fact_Sales_NIAD
|
||||
}[Data],
|
||||
"
|
||||
SELECT
|
||||
DATA_SOURCE,
|
||||
MARKET,
|
||||
KEY_COMPETITOR,
|
||||
CLASS,
|
||||
YYYYMM,
|
||||
PACK_COD,
|
||||
AUDIT_COD,
|
||||
nullif(SUM(SALES_UNIT_CAL), 0) AS SALES_UNIT_CAL,
|
||||
nullif(SUM(SALES_UNIT_CAL_LY), 0) AS SALES_UNIT_CAL_LY,
|
||||
nullif(SUM(SALES_VALUE_CAL), 0) AS SALES_VALUE_CAL,
|
||||
nullif(SUM(SALES_VALUE_CAL_LY), 0) AS SALES_VALUE_CAL_LY,
|
||||
nullif(SUM(CONUTING_UNIT), 0) AS CONUTING_UNIT,
|
||||
nullif(SUM(CONUTING_UNIT_LY), 0) AS CONUTING_UNIT_LY,
|
||||
concat( PACK_COD,DATA_SOURCE) AS PACK_SOURCE,
|
||||
concat( AUDIT_COD,DATA_SOURCE) AS AUDIT_SOURCE,
|
||||
concat( LEFT(YYYYMM,4),'-',RIGHT(YYYYMM,2),'-','01') AS DATE_KEY
|
||||
FROM
|
||||
dm.dm_tf_external_sales_niad
|
||||
WHERE
|
||||
DATA_SOURCE in ( 'Retail(Quarterly)','EC(Monthly)' )
|
||||
GROUP BY
|
||||
DATA_SOURCE,
|
||||
YYYYMM,
|
||||
PACK_COD,
|
||||
AUDIT_COD
|
||||
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,
|
||||
PRESCRIPTION,
|
||||
PRESCRIPTION_LY,
|
||||
PACK_SOURCE,
|
||||
AUDIT_SOURCE,
|
||||
MARKET_SOURCE,
|
||||
CLASS_SOURCE,
|
||||
DATE_KEY
|
||||
FROM
|
||||
DM.DM_TF_EXT_UNIONALL_SALES_MAPPING_NIAD
|
||||
"
|
||||
& UsingLimit,
|
||||
null,
|
||||
|
||||
@@ -38,14 +38,22 @@ table 'Fields.FreeReportNIAD'
|
||||
|
||||
column Value4
|
||||
lineageTag: 42721fe7-8334-4bf6-b1b7-552c1b31016b
|
||||
summarizeBy: none
|
||||
isNameInferred
|
||||
sourceColumn: [Value4]
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column Value5
|
||||
lineageTag: df945e1e-7d43-4366-aa6d-9455af2aff07
|
||||
summarizeBy: sum
|
||||
isNameInferred
|
||||
sourceColumn: [Value5]
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
partition 'Fields.FreeReportNIAD' = calculated
|
||||
mode: import
|
||||
source = ```
|
||||
@@ -72,7 +80,7 @@ table 'Fields.FreeReportNIAD'
|
||||
( "Pack_LCH", NAMEOF ( Dim_PackInfo[PACK_LCH] ), 224, "Market & Product",2 ),
|
||||
( "VBP", NAMEOF ( Dim_PackInfo[VBP_DESC] ), 225, "Market & Product",2 ),
|
||||
( "VBP(Brand)", NAMEOF ( Dim_PackInfo[VBP_BRAND] ), 226, "Market & Product",2 ),
|
||||
( "Key Brand", NAMEOF ( Dim_MKTPackMapping[KEY_COMPETITOR] ), 227, "Market & Product",2 ),
|
||||
( "Key Brand", NAMEOF ( Dim_KeyCompetitor[KEY_COMPETITOR] ), 227, "Market & Product",2 ),
|
||||
( "Originator/Generics", NAMEOF ( Dim_PackInfo[GENE_ORIG_DESC] ), 228, "Market & Product",2 ),
|
||||
|
||||
( "ATC1", NAMEOF ( Dim_PackInfo[ATC1_CODE_DESC] ), 230, "Market & Product",2 ),
|
||||
|
||||
@@ -20428,303 +20428,6 @@ table Measure
|
||||
displayFolder: OLD\ForAI
|
||||
lineageTag: ef44ef79-7921-416c-8ec0-a2d4ac11bf37
|
||||
|
||||
measure '00.Retail.NIAD.Value' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[SALES_VALUE_CAL]
|
||||
* [External.SelectValueMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[SALES_VALUE_CAL] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: 5c3ce518-dae6-4095-b5f1-f3c216cadef0
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Unit.LY' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[SALES_UNIT_CAL_LY]
|
||||
* [External.SelectUnitMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[SALES_UNIT_CAL_LY] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: a4017c61-122d-4af7-8eac-8a5410e92475
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Unit' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[SALES_UNIT_CAL]
|
||||
* [External.SelectUnitMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[SALES_UNIT_CAL] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: 24edaf71-7530-4c6d-929e-4d971a4a0e8b
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.PDOT.LY' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[CONUTING_UNIT_LY]
|
||||
* [External.SelectPDOTMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[CONUTING_UNIT_LY] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: 8b95b9d7-235a-4d7e-b6ea-94e79fcce762
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.PDOT' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[CONUTING_UNIT]
|
||||
* [External.SelectPDOTMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[CONUTING_UNIT] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: 04b73112-a012-4bab-b05e-774810797bec
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.Value.LY' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[SALES_VALUE_CAL_LY]
|
||||
* [External.SelectValueMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[SALES_VALUE_CAL_LY] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: 9593012e-070a-44a2-a950-93c5ac014837
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.CU.LY' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[CONUTING_UNIT_LY]
|
||||
* [External.SelectCountingUnitMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[CONUTING_UNIT_LY] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: 6dc0eda0-6f38-4ed7-af8b-2922241500d5
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '00.Retail.NIAD.CU' =
|
||||
IF (
|
||||
ISCROSSFILTERED ( Dim_Market ),
|
||||
SUMX (
|
||||
Fact_Sales_NIAD,
|
||||
Fact_Sales_NIAD[CONUTING_UNIT]
|
||||
* [External.SelectCountingUnitMKTRatio]
|
||||
),
|
||||
SUM ( Fact_Sales_NIAD[CONUTING_UNIT] )
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\00
|
||||
lineageTag: e7134c78-d8eb-4b51-a621-a71934194739
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
measure '01.Retail.NIAD.CU' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.CU],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.CU]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: f2fbd703-32b4-45c5-8f2f-37b9c6e68908
|
||||
|
||||
measure '01.Retail.NIAD.CU.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.CU.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.CU.LY]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: cd23c4ea-e5b0-4ce3-864f-c45178a9af82
|
||||
|
||||
measure '01.Retail.NIAD.PDOT' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.PDOT],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.PDOT]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: 4c7f667e-7d0a-4fcf-82d2-19fabf18e790
|
||||
|
||||
measure '01.Retail.NIAD.PDOT.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.PDOT.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.PDOT.LY]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: 1dcc6d0b-3a67-45da-b593-c09d2a2f9802
|
||||
|
||||
measure '01.Retail.NIAD.Unit' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Unit],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Unit]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: 99b4674a-cd6d-4621-897d-c3e8831c5210
|
||||
|
||||
measure '01.Retail.NIAD.Unit.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Unit.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Unit.LY]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: 0a81f7dc-01d9-4446-b7fa-1cb30dd57d44
|
||||
|
||||
measure '01.Retail.NIAD.Value' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Value],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Value]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: 792eaa55-a51f-4d28-8aef-f62b69a676e4
|
||||
|
||||
measure '01.Retail.NIAD.Value.LY' =
|
||||
SWITCH (
|
||||
TRUE ( ),
|
||||
ISFILTERED ( Dim_RC ) || ISFILTERED ( Dim_Org ),
|
||||
CALCULATE (
|
||||
[00.Retail.NIAD.Value.LY],
|
||||
TREATAS (
|
||||
VALUES ( Dim_Market[MKT_SOURCE] ),
|
||||
Dim_RC[MKT_SOURCE]
|
||||
)
|
||||
),
|
||||
[00.Retail.NIAD.Value.LY]
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD\01
|
||||
lineageTag: 00a3ee30-b5b7-4253-9db4-f0aa80e5b409
|
||||
|
||||
measure 'Retail.NIAD.Sales' =
|
||||
SWITCH (
|
||||
[External.SelectUnit],
|
||||
"RMB", [01.Retail.NIAD.Value],
|
||||
"K RMB", [01.Retail.NIAD.Value] / 1000,
|
||||
"M RMB", [01.Retail.NIAD.Value] / 1000000,
|
||||
"USD", DIVIDE ( [01.Retail.NIAD.Value], [ExchangeRate] ),
|
||||
"K USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value], [ExchangeRate] ) / 1000,
|
||||
"M USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value], [ExchangeRate] ) / 1000000,
|
||||
"Unit", [01.Retail.NIAD.Unit],
|
||||
"K Unit", [01.Retail.NIAD.Unit] / 1000,
|
||||
"M Unit", [01.Retail.NIAD.Unit] / 1000000,
|
||||
"CU", [01.Retail.NIAD.CU],
|
||||
"K CU", [01.Retail.NIAD.CU] / 1000,
|
||||
"M CU", [01.Retail.NIAD.CU] / 1000000,
|
||||
"PDOT", [01.Retail.NIAD.PDOT],
|
||||
"K PDOT", [01.Retail.NIAD.PDOT] / 1000,
|
||||
"M PDOT", [01.Retail.NIAD.PDOT] / 1000000
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD
|
||||
lineageTag: c23f7423-669e-4d88-aad1-98352853d75f
|
||||
|
||||
measure 'Retail.NIAD.Sales.LY' =
|
||||
SWITCH (
|
||||
[External.SelectUnit],
|
||||
"RMB", [01.Retail.NIAD.Value.LY],
|
||||
"K RMB", [01.Retail.NIAD.Value.LY] / 1000,
|
||||
"M RMB", [01.Retail.NIAD.Value.LY] / 1000000,
|
||||
"USD", DIVIDE ( [01.Retail.NIAD.Value.LY], [ExchangeRate] ),
|
||||
"K USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value.LY], [ExchangeRate] ) / 1000,
|
||||
"M USD",
|
||||
DIVIDE ( [01.Retail.NIAD.Value.LY], [ExchangeRate] )
|
||||
/ 1000000,
|
||||
"Unit", [01.Retail.NIAD.Unit.LY],
|
||||
"K Unit", [01.Retail.NIAD.Unit.LY] / 1000,
|
||||
"M Unit", [01.Retail.NIAD.Unit.LY] / 1000000,
|
||||
"CU", [01.Retail.NIAD.CU.LY],
|
||||
"K CU", [01.Retail.NIAD.CU.LY] / 1000,
|
||||
"M CU", [01.Retail.NIAD.CU.LY] / 1000000,
|
||||
"PDOT", [01.Retail.NIAD.PDOT.LY],
|
||||
"K PDOT", [01.Retail.NIAD.PDOT.LY] / 1000,
|
||||
"M PDOT", [01.Retail.NIAD.PDOT.LY] / 1000000
|
||||
)
|
||||
displayFolder: OLD\FreeReport_NIAD
|
||||
lineageTag: 782b8f68-5311-4d58-b8c3-77d0615c723c
|
||||
|
||||
measure 'External.4.1.Text.Retail.NIAD.Text' =
|
||||
VAR R = "NIAD市场月度明细(仅Retail/EC)"
|
||||
VAR EC = "NIAD市场月度明细(仅Retail/EC)"
|
||||
|
||||
Reference in New Issue
Block a user