152 lines
3.8 KiB
Plaintext
152 lines
3.8 KiB
Plaintext
table Dim_MKTPackMapping_Total
|
|
lineageTag: 9b1443ac-f3d1-463f-aab8-71d10b8163f3
|
|
|
|
column PACK_COD
|
|
dataType: string
|
|
lineageTag: 9fb40282-1f71-4aac-bb5f-b66e522ddbd6
|
|
summarizeBy: none
|
|
sourceColumn: PACK_COD
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column PROD_DES
|
|
dataType: string
|
|
lineageTag: 482bb682-c003-430e-9499-947c52d3fa57
|
|
summarizeBy: none
|
|
sourceColumn: PROD_DES
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column MARKET
|
|
dataType: string
|
|
lineageTag: 1fad37d6-80d8-4a0d-8517-b058f0705db4
|
|
summarizeBy: none
|
|
sourceColumn: MARKET
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column VALUE_MARKET_RATIO
|
|
dataType: double
|
|
lineageTag: be70705e-e5c9-439f-a7be-922ae132ba92
|
|
summarizeBy: sum
|
|
sourceColumn: VALUE_MARKET_RATIO
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
|
|
|
column UNIT_MARKET_RATIO
|
|
dataType: double
|
|
lineageTag: 0ad11eb4-4ee1-4335-b44f-fc5f8637f196
|
|
summarizeBy: sum
|
|
sourceColumn: UNIT_MARKET_RATIO
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
|
|
|
column COUNTINGUNIT_MARKET_RATIO
|
|
dataType: double
|
|
lineageTag: f3795085-aadd-4b7e-933c-680f115c834f
|
|
summarizeBy: sum
|
|
sourceColumn: COUNTINGUNIT_MARKET_RATIO
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
|
|
|
column MKT_PROD = [MARKET]&[PROD_DES]
|
|
lineageTag: be8033e8-62dd-4fe5-a0e2-95032ab7b827
|
|
summarizeBy: none
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column CLASS
|
|
dataType: string
|
|
lineageTag: 9e0a4ed7-2972-4f1f-96fe-56a1b86c82c7
|
|
summarizeBy: none
|
|
sourceColumn: CLASS
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column PROD_DES_C
|
|
dataType: string
|
|
lineageTag: 59e4ae4d-e4ca-4f73-9d16-f71c0090122e
|
|
summarizeBy: none
|
|
sourceColumn: PROD_DES_C
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column DATA_SOURCE
|
|
dataType: string
|
|
lineageTag: 4be6209f-5ecc-42cb-b728-5ba5958f15de
|
|
summarizeBy: none
|
|
sourceColumn: DATA_SOURCE
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column MKT_SOURCE = [MARKET] & [DATA_SOURCE]
|
|
lineageTag: f2e071d9-d686-461a-9830-caffd606a79c
|
|
summarizeBy: none
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column PDOT_MARKET_RATIO
|
|
dataType: double
|
|
lineageTag: 0d60a930-4065-4337-be22-d8b63596da80
|
|
summarizeBy: sum
|
|
sourceColumn: PDOT_MARKET_RATIO
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
|
|
|
column PACK_SOURCE = [PACK_COD] & [DATA_SOURCE]
|
|
lineageTag: 7b03092f-fcb6-4575-a506-d22037efb5bd
|
|
summarizeBy: none
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
partition Dim_MKTPackMapping_Total = 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 PACK_COD,PROD_DES,PROD_DES_C,MARKET,CLASS
|
|
,CAST(VALUE_MARKET_RATIO AS DECIMAL(38,20)) VALUE_MARKET_RATIO
|
|
,CAST(UNIT_MARKET_RATIO AS DECIMAL(38,20)) UNIT_MARKET_RATIO
|
|
,case when DATA_SOURCE = 'EC(Monthly)' then 1 ELSE CAST(COUNTINGUNIT_MARKET_RATIO AS DECIMAL(38, 20)) END as COUNTINGUNIT_MARKET_RATIO
|
|
,CAST(PDOT_MARKET_RATIO AS DECIMAL(38,20)) PDOT_MARKET_RATIO,DATA_SOURCE
|
|
|
|
FROM DM.DM_TD_EXTERNAL_MARKET_PACK_MAPPING
|
|
"
|
|
& UsingLimit,
|
|
null,
|
|
[
|
|
EnableFolding = true
|
|
]
|
|
)
|
|
in
|
|
Source
|
|
```
|
|
|
|
annotation PBI_ResultType = Table
|
|
|
|
annotation PBI_NavigationStepName = Navigation
|
|
|
|
annotation TabularEditor_TableGroup = 04_DimTable
|
|
|