101 lines
2.6 KiB
Plaintext
101 lines
2.6 KiB
Plaintext
table Остатки
|
||
|
||
column artic_id
|
||
dataType: string
|
||
summarizeBy: none
|
||
sourceColumn: artic_id
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
column Code
|
||
dataType: string
|
||
summarizeBy: none
|
||
sourceColumn: Code
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
column sklad
|
||
dataType: string
|
||
summarizeBy: none
|
||
sourceColumn: sklad
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
column 'Категория склада'
|
||
dataType: string
|
||
summarizeBy: none
|
||
sourceColumn: Категория склада
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
column upakovok
|
||
dataType: double
|
||
summarizeBy: sum
|
||
sourceColumn: upakovok
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||
|
||
column quantity
|
||
dataType: double
|
||
summarizeBy: sum
|
||
sourceColumn: quantity
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||
|
||
column upakovka
|
||
dataType: double
|
||
summarizeBy: sum
|
||
sourceColumn: upakovka
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||
|
||
column Дата
|
||
dataType: dateTime
|
||
formatString: Long Date
|
||
summarizeBy: none
|
||
sourceColumn: Дата
|
||
|
||
variation Изменение
|
||
isDefault
|
||
relationship: 8afa5bd2-9707-4363-96f2-670a305dc4f3
|
||
defaultHierarchy: LocalDateTable_2b612047-5dcc-402e-b2ed-154636b18544.'Иерархия дат'
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
annotation UnderlyingDateTimeDataType = Date
|
||
|
||
column 'quantity в руб' = [quantity] * RELATED('Номенклатура'[Цена учетная, руб])
|
||
formatString: #,0.00000
|
||
summarizeBy: sum
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
column 'quantity в usd' = [quantity] * RELATED('Номенклатура'[Цена учетная, usd])
|
||
formatString: #,0.0000000
|
||
summarizeBy: sum
|
||
|
||
annotation SummarizationSetBy = Automatic
|
||
|
||
partition Остатки = m
|
||
mode: import
|
||
source =
|
||
let
|
||
Источник = Sql.Database("prdsql", "mag_pbi"),
|
||
pbi_ostatki_short = Источник{[Schema="pbi",Item="ostatki_short"]}[Data],
|
||
#"Переименованные столбцы" = Table.RenameColumns(pbi_ostatki_short,{{"date", "Дата"}}),
|
||
#"Измененный тип" = Table.TransformColumnTypes(#"Переименованные столбцы",{{"Дата", type date}}),
|
||
#"Удаленные столбцы" = Table.RemoveColumns(#"Измененный тип",{"Учетная цена, старое"})
|
||
in
|
||
#"Удаленные столбцы"
|
||
|
||
annotation PBI_ResultType = Table
|
||
|
||
annotation PBI_NavigationStepName = Навигация
|
||
|