initial
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
table Dim_Platform
|
||||
lineageTag: 09722c28-8ac3-4435-8ecd-280f532dc58f
|
||||
|
||||
column PLATFORM_TYPE
|
||||
dataType: string
|
||||
lineageTag: 687c6978-e9d4-41c1-8fd7-c2780a381d65
|
||||
summarizeBy: none
|
||||
sourceColumn: PLATFORM_TYPE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column DATA_SOURCE
|
||||
dataType: string
|
||||
lineageTag: d3465f97-2b24-4fa1-8e1d-63315621dc49
|
||||
summarizeBy: none
|
||||
sourceColumn: DATA_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM
|
||||
dataType: string
|
||||
lineageTag: 172cc61d-f669-4c4b-bee7-058ad5526aba
|
||||
summarizeBy: none
|
||||
sourceColumn: PLATFORM
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM_TYPE_SOURCE = [PLATFORM_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: ddf3b915-ce38-4381-87ef-afc3967ca14f
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM_EN = SWITCH([PLATFORM],"京东", "JD", "天猫", "Tmall")
|
||||
lineageTag: 6c380f91-7840-406e-bb90-3c72029fb864
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Dim_Platform = 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 DATA_SOURCE,B.PLATFORM,CASE WHEN A.DATA_SOURCE = 'EC(Monthly)' THEN B.PLATFORM ELSE '' END PLATFORM_TYPE
|
||||
FROM DM.DM_TF_EXTERNAL_SALES A
|
||||
INNER JOIN (SELECT DISTINCT PLATFORM_TYPE PLATFORM FROM DM.DM_TF_EXTERNAL_SALES WHERE PLATFORM_TYPE <> '') B
|
||||
WHERE YYYYMM >= (date_format(now(), 'yyyy')-3)*100+1 "
|
||||
& UsingLimit,
|
||||
null,
|
||||
[
|
||||
EnableFolding = true
|
||||
]
|
||||
)
|
||||
in
|
||||
Source
|
||||
```
|
||||
|
||||
annotation PBI_ResultType = Exception
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
annotation TabularEditor_TableGroup = 04_DimTable
|
||||
|
||||
Reference in New Issue
Block a user