initial
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
table Dim_Remove_inst
|
||||
lineageTag: 93253b88-5856-496a-a40c-d0785249166c
|
||||
|
||||
column DATA_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 8f75c194-6bb9-49ca-9c1b-f047a2720631
|
||||
summarizeBy: none
|
||||
sourceColumn: DATA_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column audit_cod
|
||||
dataType: string
|
||||
lineageTag: 54fc476e-be18-44ed-a46e-bcfb15e60538
|
||||
summarizeBy: none
|
||||
sourceColumn: audit_cod
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column MARKET
|
||||
dataType: string
|
||||
lineageTag: 3c330f36-aad2-4244-b66d-74203d483296
|
||||
summarizeBy: none
|
||||
sourceColumn: MARKET
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column aia_remove
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: d9d13a67-e943-45d5-ba96-727ca703743c
|
||||
summarizeBy: sum
|
||||
sourceColumn: aia_remove
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column AUDIT_KEY
|
||||
dataType: string
|
||||
lineageTag: fe2bbaa4-41f9-4ba3-abdf-8d865b9df470
|
||||
summarizeBy: none
|
||||
sourceColumn: AUDIT_KEY
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Dim_Remove_inst = 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
|
||||
t1.DATA_SOURCE,
|
||||
t1.audit_cod,
|
||||
t2.MARKET,
|
||||
if(t3.ins_code IS NULL, 1, 0) AS aia_remove,
|
||||
concat(t1.audit_cod, t1.DATA_SOURCE) AUDIT_KEY
|
||||
from
|
||||
DM.DM_TD_EXTERNAL_GEO t1
|
||||
left join dm.dm_td_external_market t2
|
||||
on t1.DATA_SOURCE = t2.DATA_SOURCE
|
||||
LEFT JOIN dm.dm_ext_aia_data_remove_flag t3
|
||||
ON t2.market = t3.market
|
||||
AND t1.audit_cod = t3.ins_code
|
||||
--where
|
||||
--t1.DATA_SOURCE in ('IQVIA-CHPA(Monthly)', 'DTP(Quarterly)', 'AIA(Monthly)')
|
||||
group by 1,2,3,4
|
||||
"
|
||||
& UsingLimit,
|
||||
null,
|
||||
[
|
||||
EnableFolding = true
|
||||
]
|
||||
)
|
||||
in
|
||||
Source
|
||||
```
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
annotation PBI_ResultType = Table
|
||||
|
||||
annotation TabularEditor_TableGroup = 04_DimTable
|
||||
|
||||
Reference in New Issue
Block a user