analytics/pbi/report/Model/tables/mp аналитика продаж.tmdl
2026-02-22 15:39:05 +03:00

106 lines
3.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

table 'mp аналитика продаж'
column Узел
dataType: string
isHidden
summarizeBy: none
sourceColumn: Узел
changedProperty = IsHidden
annotation SummarizationSetBy = Automatic
column 'Вид загрузки'
dataType: string
summarizeBy: none
sourceColumn: Вид загрузки
annotation SummarizationSetBy = Automatic
column Склад
dataType: string
summarizeBy: none
sourceColumn: Склад
annotation SummarizationSetBy = Automatic
column Дата
dataType: dateTime
isHidden
formatString: Long Date
summarizeBy: none
sourceColumn: Дата
changedProperty = IsHidden
annotation SummarizationSetBy = Automatic
annotation UnderlyingDateTimeDataType = Date
column artic_id
dataType: string
isHidden
summarizeBy: none
sourceColumn: artic_id
changedProperty = IsHidden
annotation SummarizationSetBy = Automatic
column Область
dataType: string
summarizeBy: none
sourceColumn: Область
annotation SummarizationSetBy = Automatic
column Страна
dataType: string
summarizeBy: none
sourceColumn: Страна
annotation SummarizationSetBy = Automatic
column Регион
dataType: string
summarizeBy: none
sourceColumn: Регион
annotation SummarizationSetBy = Automatic
column 'Продано, упак'
dataType: int64
formatString: #,0
summarizeBy: sum
sourceColumn: Продано, упак
annotation SummarizationSetBy = Automatic
column 'Продано, руб'
dataType: double
formatString: #,0
summarizeBy: sum
sourceColumn: Продано, руб
annotation SummarizationSetBy = Automatic
partition 'mp аналитика продаж' = m
mode: import
source =
let
Источник = Sql.Database("prdsql", "mag_pbi"),
#"pbi_Внешние продажи" = Источник{[Schema="pbi",Item="Внешние продажи"]}[Data],
#"Измененный тип" = Table.TransformColumnTypes(#"pbi_Внешние продажи",{{"Дата", type date}, {"Количество", Int64.Type}}),
#"Переименованные столбцы" = Table.RenameColumns(#"Измененный тип",{{"Количество", "Продано, шт"}, {"Сумма", "Продано, руб"}}),
#"Обрезанный текст" = Table.TransformColumns(#"Переименованные столбцы",{{"id_внешний", Text.Trim, type text}}),
#"Удаленные столбцы" = Table.RemoveColumns(#"Обрезанный текст",{"id_внешний"}),
#"Строки с примененным фильтром" = Table.SelectRows(#"Удаленные столбцы", each [Дата] >= #date(2024, 1, 1)),
#"Переименованные столбцы1" = Table.RenameColumns(#"Строки с примененным фильтром",{{"Продано, шт", "Продано, упак"}})
in
#"Переименованные столбцы1"
annotation PBI_ResultType = Table
annotation PBI_NavigationStepName = Навигация