116 lines
2.7 KiB
Plaintext
116 lines
2.7 KiB
Plaintext
table Fact_AIA_DataQuality
|
|
lineageTag: d39451de-9ae2-4403-8ca1-b964e48dc9fd
|
|
|
|
column ins_code
|
|
dataType: string
|
|
lineageTag: f0594b11-6e56-45bd-ae07-9f68d31c2df6
|
|
summarizeBy: none
|
|
sourceColumn: ins_code
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column market
|
|
dataType: string
|
|
lineageTag: c2a1f98b-f007-4e04-be6a-160e5188ab3c
|
|
summarizeBy: none
|
|
sourceColumn: market
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column is_newly_added
|
|
dataType: string
|
|
lineageTag: f7569b9a-f6fc-4f06-9b2c-2f33636fd161
|
|
summarizeBy: none
|
|
sourceColumn: is_newly_added
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column audit_key
|
|
dataType: string
|
|
lineageTag: 7bc383a6-16d2-4e01-9aea-a9ad1071e598
|
|
summarizeBy: none
|
|
sourceColumn: audit_key
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column light
|
|
dataType: string
|
|
lineageTag: 4953090b-f17b-4f85-b3af-7fd630267b71
|
|
summarizeBy: none
|
|
sourceColumn: light
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column province_name
|
|
dataType: string
|
|
lineageTag: ec8da1b9-1d20-414e-8559-4441955119a9
|
|
summarizeBy: none
|
|
sourceColumn: province_name
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
column city_name
|
|
dataType: string
|
|
lineageTag: cabfa364-41d4-4e8b-9008-94c52f14d87b
|
|
summarizeBy: none
|
|
sourceColumn: city_name
|
|
|
|
annotation SummarizationSetBy = Automatic
|
|
|
|
partition Fact_AIA_DataQuality = 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],
|
|
"
|
|
with mapping(
|
|
select 1 as o_value,'Y' as display_value
|
|
union all
|
|
select 0,''
|
|
)
|
|
select
|
|
ins_code
|
|
,province_name
|
|
,city_name
|
|
,market
|
|
-- ,pack_cod
|
|
-- ,concat(pack_cod ,data_source) pack_key
|
|
,b.display_value as is_newly_added
|
|
,concat(ins_code ,data_source) audit_key
|
|
,case
|
|
when min(light) = 1 then '红灯'
|
|
when min(light) = 2 then '黄灯'
|
|
else '绿灯'
|
|
end as light
|
|
from dm.dm_ext_aia_data_quality_flag a
|
|
left join mapping b on a.is_newly_added = b.o_value
|
|
group by 1,2,3,4,5,6
|
|
"
|
|
& UsingLimit,
|
|
null,
|
|
[
|
|
EnableFolding = true
|
|
]
|
|
)
|
|
in
|
|
Source
|
|
```
|
|
|
|
annotation PBI_NavigationStepName = Navigation
|
|
|
|
annotation PBI_ResultType = Table
|
|
|
|
annotation TabularEditor_TableGroup = 05_FactTable
|
|
|