[Power Query] Custom Functions
let IsValidEmail = (input as text) => let name = Text.BeforeDelimiter(input,"@",{0,RelativePosition.FromEnd}), ext = Text.AfterDelimiter(input,".",{0,RelativePosition.FromEnd}), domain = Text.BetweenDelimiters(input,name&"@","."&ext), return = Text.Length(name) > 0 and Text.Length(domain) > 0 and Text.Length(ext) > 1 and Text.Length(ext) < 6 and name = Text.Select(name, {"a".."z","A".."Z","0".."..
[Power BI] Power Query M ํจ์ - let, in
let a = [์ด1], list1 = Table.SelectRows([Table], each [begin] = a)[index] in List.Intersect({list1, list2})โ let statement ์์ ๋ณ์ ์ ์ธ, ํจ์ ์ ์ธ, ํธ์ถ ๊ฐ๋ฅ a ๋ณ์์ [์ด1] ๋์
[Table]์์ [begin]์ด a ๋ณด๋ค ์๊ฑฐ๋ ๊ฐ์ ๊ฐ๋ค์ index๋ฅผ list1์ ๋์
[Table]์์ [end]์ด a ๋ณด๋ค ํฌ๊ฑฐ๋ ๊ฐ์ ๊ฐ๋ค์ index๋ฅผ list2์ ๋์
์ต์ข
= list1, list2์ค ์ค๋ณต ๊ฐ let Add = (x, y) => x + y, AddResults = [ OnePlusOne = Add(1, 1), // equals 2 OnePlusTwo = Add(1, 2) // equals 3 ..