85 lines
1.9 KiB
Plaintext
85 lines
1.9 KiB
Plaintext
table Dim_HPFlag
|
|
lineageTag: e281e266-d03f-45f7-9f2f-9ff74984c501
|
|
|
|
column DATA_SOURCE
|
|
dataType: string
|
|
lineageTag: 0d3fbc8e-247e-4883-92be-032ddd598960
|
|
summarizeBy: none
|
|
sourceColumn: DATA_SOURCE
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column AIA_HP_FLAG
|
|
dataType: string
|
|
lineageTag: f012cea6-2199-40c3-98b8-aa2c6a1ca94c
|
|
summarizeBy: none
|
|
sourceColumn: AIA_HP_FLAG
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column HP_SOURCE = [AIA_HP_FLAG] & [DATA_SOURCE]
|
|
lineageTag: 6c0d0a97-6af0-4dae-8bcc-6a8e097d1651
|
|
summarizeBy: none
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column HP_KEY
|
|
dataType: string
|
|
lineageTag: 0f3329e1-0534-4cf3-8c0b-74626f19d17a
|
|
summarizeBy: none
|
|
sourceColumn: HP_KEY
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
partition Dim_HPFlag = m
|
|
mode: import
|
|
queryGroup: Dim
|
|
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.DATA_SOURCE,
|
|
B.AIA_HP_FLAG,
|
|
CASE
|
|
WHEN A.DATA_SOURCE = 'AIA(Monthly)' THEN B.AIA_HP_FLAG
|
|
ELSE ''
|
|
END HP_KEY
|
|
FROM
|
|
DM.dm_tf_ext_unionall_sales A
|
|
INNER JOIN (
|
|
SELECT DISTINCT
|
|
AIA_HP_FLAG
|
|
FROM
|
|
DM.dm_aia_hp_flag
|
|
WHERE
|
|
NVL(AIA_HP_FLAG, '') <> ''
|
|
) B
|
|
"
|
|
& UsingLimit,
|
|
null,
|
|
[
|
|
EnableFolding = true
|
|
]
|
|
)
|
|
in
|
|
Source
|
|
```
|
|
|
|
annotation PBI_ResultType = Table
|
|
|
|
annotation PBI_NavigationStepName = Navigation
|
|
|
|
annotation TabularEditor_TableGroup = 04_DimTable
|
|
|