Created
May 4, 2020 06:01
-
-
Save maxim-uvarov/43aa07f0d93b8a08288cc38b1290303d to your computer and use it in GitHub Desktop.
PQYandexMetrica - дни без расходов (null) заменить на дни с 0 расходов
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
Source = PQYM("21781912", "ym:ad:<currency>AdCost", "ym:ad:date", "2020-01-17", "yesterday", "AQAAAAAQy8J1AAPquhq4JeyqQE6ygfUNoMnGr8E", null, "9803578"), | |
DateNullCheck = if Source[Дата]{0} = null then #table({"Дата", "Стоимость кликов, RUB"}, {{Date.AddDays(Date.From(DateTime.LocalNow()), -1), 0}}) else Source | |
in | |
DateNullCheck |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment