Files
MarketAnalysis-Rebuild/External All Channel.SemanticModel/definition/tables/Fact_Sales_NIAD.tmdl
2026-04-02 15:02:33 +08:00

304 lines
6.7 KiB
Plaintext

table Fact_Sales_NIAD
lineageTag: 5ce66265-a4ef-457b-9400-e0d76042498d
column DATA_SOURCE
dataType: string
lineageTag: 764d40f0-97b3-41ab-92bb-b74d8624888f
summarizeBy: none
sourceColumn: DATA_SOURCE
annotation SummarizationSetBy = Automatic
column YYYYMM
dataType: string
lineageTag: 929931e8-c889-45d4-9acf-b9b1cfb96dc5
summarizeBy: none
sourceColumn: YYYYMM
annotation SummarizationSetBy = Automatic
column PACK_COD
dataType: string
lineageTag: b7a26006-cfb3-411f-9aa6-0bde24738f23
summarizeBy: none
sourceColumn: PACK_COD
annotation SummarizationSetBy = Automatic
column AUDIT_COD
dataType: string
lineageTag: fc16ae38-13de-45a6-88ce-14ebf3851f0b
summarizeBy: none
sourceColumn: AUDIT_COD
annotation SummarizationSetBy = Automatic
column SALES_UNIT_CAL
dataType: double
lineageTag: 21e71e6e-79b1-41a1-9d8c-b8c3f18d529f
summarizeBy: sum
sourceColumn: SALES_UNIT_CAL
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column SALES_UNIT_CAL_LY
dataType: double
lineageTag: 170f84e8-e787-4790-b847-df538521291b
summarizeBy: sum
sourceColumn: SALES_UNIT_CAL_LY
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column SALES_VALUE_CAL
dataType: double
lineageTag: 5d5270ae-c260-491b-9a09-f54b405c0f88
summarizeBy: sum
sourceColumn: SALES_VALUE_CAL
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column SALES_VALUE_CAL_LY
dataType: double
lineageTag: ba604051-0bb1-45ce-81d7-1eae3f68b227
summarizeBy: sum
sourceColumn: SALES_VALUE_CAL_LY
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column CONUTING_UNIT
dataType: double
lineageTag: 3b08c107-bdb7-4123-86ca-4578da496386
summarizeBy: sum
sourceColumn: CONUTING_UNIT
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column CONUTING_UNIT_LY
dataType: double
lineageTag: 92e36b49-4574-4cc5-8674-18351118d5a7
summarizeBy: sum
sourceColumn: CONUTING_UNIT_LY
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column PACK_SOURCE
dataType: string
lineageTag: e68961c0-9624-4cb5-946c-9ad5216df6c4
summarizeBy: none
sourceColumn: PACK_SOURCE
annotation SummarizationSetBy = Automatic
column AUDIT_SOURCE
dataType: string
lineageTag: 33474150-ce11-4b0c-8ec2-ca7a2189fb16
summarizeBy: none
sourceColumn: AUDIT_SOURCE
annotation SummarizationSetBy = Automatic
column DATE_KEY
dataType: dateTime
formatString: Long Date
lineageTag: 807a9b02-bad7-4d13-810f-22b6bdc7a912
summarizeBy: none
sourceColumn: DATE_KEY
annotation SummarizationSetBy = Automatic
annotation UnderlyingDateTimeDataType = Date
column MARKET
dataType: string
lineageTag: f71a04d6-91b4-4354-85a7-c38fa2888245
summarizeBy: none
sourceColumn: MARKET
annotation SummarizationSetBy = Automatic
column KEY_COMPETITOR
dataType: string
lineageTag: bd3ef19e-8e3c-4d56-98b4-c88e885ec7db
summarizeBy: none
sourceColumn: KEY_COMPETITOR
annotation SummarizationSetBy = Automatic
column CLASS
dataType: string
lineageTag: 1d13435a-a859-4ac1-8957-b99ddab9c41b
summarizeBy: none
sourceColumn: CLASS
annotation SummarizationSetBy = Automatic
column VA
dataType: double
lineageTag: 605d43d2-2d3f-4bb6-a68a-cdbf8530f78c
summarizeBy: sum
sourceColumn: VA
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column UT
dataType: double
lineageTag: 4357b9e7-3fb2-44b7-b89d-52c949a01594
summarizeBy: sum
sourceColumn: UT
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column CU
dataType: double
lineageTag: ec859260-bbb1-4942-a308-ddeed28ce609
summarizeBy: sum
sourceColumn: CU
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column PT
dataType: double
lineageTag: b014fc48-26ce-4291-bbac-49efb08ec3f7
summarizeBy: sum
sourceColumn: PT
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column PDOT
dataType: double
lineageTag: 3e1f7977-926d-4364-8e66-7b21252142ad
summarizeBy: sum
sourceColumn: PDOT
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column PDOT_LY
dataType: double
lineageTag: c15944f8-f929-4fec-9e12-aa6de850ffd9
summarizeBy: sum
sourceColumn: PDOT_LY
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}
column PRESCRIPTION
dataType: int64
formatString: 0
lineageTag: 606836a9-f115-4ba4-8f5a-baa7a143be16
summarizeBy: sum
sourceColumn: PRESCRIPTION
annotation SummarizationSetBy = Automatic
column PRESCRIPTION_LY
dataType: int64
formatString: 0
lineageTag: bd792513-4f77-47df-861d-5273987fb633
summarizeBy: sum
sourceColumn: PRESCRIPTION_LY
annotation SummarizationSetBy = Automatic
column MARKET_SOURCE
dataType: string
lineageTag: db499061-38c8-450c-a58f-b246b8a04d98
summarizeBy: none
sourceColumn: MARKET_SOURCE
annotation SummarizationSetBy = Automatic
column CLASS_SOURCE
dataType: string
lineageTag: 41d82946-9635-4083-8ca0-2c5e3972cde5
summarizeBy: none
sourceColumn: CLASS_SOURCE
annotation SummarizationSetBy = Automatic
partition Fact_Sales_NIAD = m
mode: import
queryGroup: Fact_Sales
source = ```
let
Source =
Value.NativeQuery(
Databricks.Catalogs(
ServerAddress, HttpPath, [
Catalog = CatalogName,
Database = null,
EnableAutomaticProxyDiscovery = null,EnableQueryResultDownload="0"
]
){
[Name = CatalogName, Kind = "Database"]
}[Data],
"
SELECT
MARKET,
KEY_COMPETITOR,
CLASS,
YYYYMM,
PACK_COD,
AUDIT_COD,
DATA_SOURCE,
VA,
UT,
CU,
PT,
SALES_UNIT_CAL,
SALES_UNIT_CAL_LY,
SALES_VALUE_CAL,
SALES_VALUE_CAL_LY,
CONUTING_UNIT,
CONUTING_UNIT_LY,
PDOT,
PDOT_LY,
PRESCRIPTION,
PRESCRIPTION_LY,
PACK_SOURCE,
AUDIT_SOURCE,
MARKET_SOURCE,
CLASS_SOURCE,
DATE_KEY
FROM
DM.DM_TF_EXT_UNIONALL_SALES_MAPPING_NIAD
"
& UsingLimit,
null,
[
EnableFolding = true
]
)
in
Source
```
annotation PBI_NavigationStepName = Navigation
annotation PBI_ResultType = Table
annotation TabularEditor_TableGroup = 05_FactTable