initial
This commit is contained in:
@@ -0,0 +1,130 @@
|
||||
table Dim_GeoGroup
|
||||
lineageTag: b0650c83-b6b6-4e47-aff7-91053ebfefae
|
||||
|
||||
column DATA_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 4bd7bbe4-8d90-40a0-85dd-c25eca8496f6
|
||||
summarizeBy: none
|
||||
sourceColumn: DATA_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AUDIT_COD
|
||||
dataType: string
|
||||
lineageTag: ef1755e6-4ba1-4a2d-9a90-ce608340a7c5
|
||||
summarizeBy: none
|
||||
sourceColumn: AUDIT_COD
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AUDIT_KEY = [AUDIT_COD] & [DATA_SOURCE] & [REGION_TYPE]
|
||||
lineageTag: eac394c1-b39e-49bb-ac03-ac7f4235fb01
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AUDIT_SOURCE = [AUDIT_COD] & [DATA_SOURCE]
|
||||
lineageTag: bcc144de-3934-4946-9e7a-4a2fa9b8e514
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REGION_TYPE
|
||||
dataType: string
|
||||
lineageTag: 4b8ad755-ddb2-46c0-8c46-6b7b5b417976
|
||||
summarizeBy: none
|
||||
sourceColumn: REGION_TYPE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PROVINCE_GROUP
|
||||
dataType: string
|
||||
lineageTag: b776d17b-0b38-4867-8c72-7c8d76864965
|
||||
summarizeBy: none
|
||||
sourceColumn: PROVINCE_GROUP
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PROVINCE_GROUP_NEW =
|
||||
|
||||
IF (
|
||||
[DATA_SOURCE] = "IQVIA-COUNTY(Quarterly)",
|
||||
SWITCH (
|
||||
[PROVINCE_GROUP],
|
||||
"BBU_BU_COUNTY", "BBU_BU_COUNTY",
|
||||
"BBU County", "BBU County",
|
||||
"County"
|
||||
),
|
||||
LOOKUPVALUE (
|
||||
Dim_DataSource[SOURCENAME],
|
||||
Dim_DataSource[DATA_SOURCE], [DATA_SOURCE]
|
||||
)
|
||||
)
|
||||
/*
|
||||
只5.2页面使用
|
||||
*/
|
||||
lineageTag: d25c0017-c69d-4f03-9ef3-36fadb99c309
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PROVINCE_GROUP_EN = SWITCH([PROVINCE_GROUP],"全国","National",[PROVINCE_GROUP])
|
||||
lineageTag: 4ac40fff-7191-4cfa-9c29-d2c9d8645571
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PROVINCE_GROUP_CATAGORY
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: f7d1d4c5-e998-4b63-a952-2cfd7fcd4515
|
||||
summarizeBy: sum
|
||||
sourceColumn: PROVINCE_GROUP_CATAGORY
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Dim_GeoGroup = m
|
||||
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,
|
||||
AUDIT_COD,
|
||||
REGION_TYPE,
|
||||
PROVINCE_GROUP,
|
||||
CASE WHEN PROVINCE_GROUP = 'BBU County' OR PROVINCE_GROUP = 'BBU_BU_COUNTY' THEN 1
|
||||
WHEN PROVINCE_GROUP = 'OBU East5' OR PROVINCE_GROUP = 'OBU NonEast5' THEN 2
|
||||
WHEN PROVINCE_GROUP = '全国' THEN 3
|
||||
ELSE 4 END AS PROVINCE_GROUP_CATAGORY
|
||||
FROM
|
||||
DM.dm_td_external_geo_type
|
||||
"
|
||||
& UsingLimit,
|
||||
null,
|
||||
[
|
||||
EnableFolding = true
|
||||
]
|
||||
)
|
||||
in
|
||||
Source
|
||||
```
|
||||
|
||||
annotation PBI_ResultType = Table
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
annotation TabularEditor_TableGroup = 04_DimTable
|
||||
|
||||
Reference in New Issue
Block a user