initial
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
table AIA_AdvanceAnalysis_DRAGON
|
||||
lineageTag: 989085eb-7dd4-4cd5-9bcc-630a7ce69d84
|
||||
|
||||
column DRAGON_FLAG
|
||||
dataType: string
|
||||
lineageTag: bf3618fb-2c9e-4a2a-80f9-9c2b3fc5c13c
|
||||
summarizeBy: none
|
||||
sourceColumn: DRAGON_FLAG
|
||||
sortByColumn: DRAGON_FLAG_ORDER
|
||||
|
||||
changedProperty = SortByColumn
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column DRAGON_FLAG_ORDER
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
lineageTag: c80919a4-7f13-42a3-b7b2-deba2428023d
|
||||
summarizeBy: none
|
||||
sourceColumn: DRAGON_FLAG_ORDER
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition AIA_AdvanceAnalysis_DRAGON = m
|
||||
mode: import
|
||||
queryGroup: 'OLD\AIA 独有表'
|
||||
source = ```
|
||||
let
|
||||
Source = Dim_RC,
|
||||
#"Filtered datasource aia" = Table.SelectRows(Source, each [DATA_SOURCE]= "AIA(Monthly)"),
|
||||
#"Removed Other Columns" = Table.SelectColumns(#"Filtered datasource aia",{"DRAGON_FLAG"}),
|
||||
#"Removed Duplicates" = Table.Distinct(#"Removed Other Columns", {"DRAGON_FLAG"}),
|
||||
#"Filtered Rows" = Table.SelectRows(#"Removed Duplicates", each [DRAGON_FLAG] <> null and [DRAGON_FLAG] <> ""),
|
||||
#"Added Custom" = Table.AddColumn(#"Filtered Rows", "DRAGON_FLAG_ORDER", each if [DRAGON_FLAG] = "CORE" then 1 else if [DRAGON_FLAG] = "EMERGING" then 2 else if [DRAGON_FLAG] = "County" then 3 else if [DRAGON_FLAG] = "NON_TARGET" then 4 else if [DRAGON_FLAG] = "Others" then 5 else 9),
|
||||
#"Appended Query" = Table.Combine({#"Added Custom",
|
||||
Table.FromRecords({ [DRAGON_FLAG = "Market", DRAGON_FLAG_ORDER = -1]})}),
|
||||
#"Changed Type" = Table.TransformColumnTypes(#"Appended Query",{{"DRAGON_FLAG_ORDER", Int64.Type}})
|
||||
in
|
||||
#"Changed Type"
|
||||
```
|
||||
|
||||
annotation PBI_NavigationStepName = Navigation
|
||||
|
||||
annotation PBI_ResultType = Table
|
||||
|
||||
annotation TabularEditor_TableGroup = 08
|
||||
|
||||
Reference in New Issue
Block a user