๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ


Power BI

(19)
[Power BI] ์Šฌ๋ผ์ด์„œ ๋™๊ธฐํ™” ๋‹ค๋ฅธ ์Šฌ๋ผ์ด์„œ์— ๋Œ€ํ•ด ํ•„๋“œ ๋ณ€๊ฒฝ ๋‚ด์šฉ ๋™๊ธฐํ™” ์ฒดํฌ
[Power BI] DAX - GENERATE Dates = VAR BaseCalendar = CALENDARAUTO(6) RETURN GENERATE ( BaseCalendar, VAR BaseDate = [Date] VAR YearDate = YEAR(BaseDate) VAR MonthNumber = MONTH(BaseDate) RETURN ROW("Day", BaseDate, "Year", YearDate, "Month Number", MonthNumber, "Month", FORMAT(BaseDate, "mmmm"), "Year Month", FORMAT(BaseDate, "mmm yy" )))
[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] ๋ฐ์ดํ„ฐ ๊ฐ€์ ธ์˜ค๊ธฐ - Postgresql ๊ธฐ๋ณธ์ ์œผ๋กœ Power BI๋Š” SSL ์ธ์ฆ์„œ๊ฐ€ ์žˆ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜๋งŒ ์‹ ๋ขฐํ•ด์„œ ์ธ์ฆ์„œ๋ฅผ ์–ป์œผ๋ ค๋ฉด SSL ์„ค์ •์„ ๋ณ€๊ฒฝํ•ด์•ผํ•จ postgresql.conf ํŒŒ์ผ์—์„œ ssl=off ๋กœ ๋ฐ”๊ฟ”์ค€๋‹ค ssl=off restart sudo service postgresql restart hevodata.com/learn/connect-postgresql-to-power-bi/ PostgreSQL To Power BI: 3 Best Ways To Connect - Learn | Hevo This blog outlines the three most common methods used to connect PostgreSQL to Power BI. Analyze and visualize your PostgreSQL data usin..
[Power BI] DAX - SUMMARIZE SUMMARIZE Returns a summary table for the requested totals over a set of groups. Syntax SUMMARIZE (, [, ]…[, , ]…) Example SUMMARIZE(ResellerSales_USD , DateTime[CalendarYear] , ProductCategory[ProductCategoryName] , "Sales Amount (USD)", SUM(ResellerSales_USD[SalesAmount_USD]) , "Discount Amount (USD)", SUM(ResellerSales_USD[DiscountAmount]) ) SUMM_TABLE ์ด๋ผ๋Š” ์š”์•ฝ ํ…Œ์ด๋ธ” ๋งŒ๋“ค๊ธฐ TABLE์—์„œ YEAR, PRODUCT, ST..
[Power BI] DAX - SUMMARIZECOLUMNS SUMM_TABLE ์ด๋ผ๋Š” ์š”์•ฝ ํ…Œ์ด๋ธ” ๋งŒ๋“ค๊ธฐ TABLE์—์„œ YEAR, PRODUCT, START, END ๊ทธ๋ฃนํ™”ํ•˜๊ณ  ๊ฐฏ์ˆ˜์—ด CNT๋ฅผ ์ถ”๊ฐ€ํ•œ ํ…Œ์ด๋ธ”์„ SUMMARIZECOLUMNS๋กœ ๋งŒ๋“ฌ -> SUMMARIZECOLUMNS(TABLE[YEAR], TABLE[PRODUCT], TABLE[START], TABLE[END], "CNT", COUNT(TABLE[START]) ํ•ด๋‹น ํ…Œ์ด๋ธ”์—์„œ CNT๊ฐ€ 1 ์ด์ƒ์ธ ํ–‰ ๋“ค๋งŒ ์ถ”์ถœํ•˜๊ณ  ์‹ถ์Œ SUMM_TABLE = SUMMARIZE( FILTER(SUMMARIZECOLUMNS(TABLE[YEAR], TABLE[PRODUCT], TABLE[START], TABLE[END], "CNT", COUNT(TABLE[START])), [CNT] > 1), [Year], [PRODU..
[Power BI] DAX - CALCULATE Sales ํ…Œ์ด๋ธ” ์ธก์ •๊ฐ’ : ํŒŒ๋ž€์ƒ‰์œผ๋กœ ๋œ ์ œํ’ˆ๋งŒ Sales Amount ํ•ฉ๊ณ„ ๊ณ„์‚ฐ Blue Revenue = CALCULATE( SUM(Sales[Sales Amount]), 'Product'[Color] = "Blue" ) PreC = var CurrentIndex = 'Table'[์ธ๋ฑ์Šค] var CurrentName = 'Table'[Name] return CALCULATE(SUM('Table'[C]),FILTER(ALL('Table'),'Table'[์ธ๋ฑ์Šค]= CurrentIndex - 1), 'Table'[Name] = CurrentName ) docs.microsoft.com/ko-kr/dax/calculate-function-dax CALCULATE ํ•จ์ˆ˜(DAX) - DAX ๋‹ค์Œ์— ๋Œ€ํ•ด ์ž..
[Power BI] Power Query M ํ•จ์ˆ˜ - Json Text ์—์„œ ๊ฐ’ ์ถ”์ถœ Json.Document Json.Document(jsonText as any, optional encoding as nullable number) as any ์‚ฌ์šฉ์ž ์ง€์ • ์—ด ์ถ”๊ฐ€ Json.Document([json]) ์‚ฌ์šฉ ํ™•์žฅ docs.microsoft.com/ko-kr/powerquery-m/json-document Json.Document - PowerQuery M ๋‹ค์Œ์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด์„ธ์š”. Json.Document docs.microsoft.com