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

Power BI/DAX

[Power BI] DAX - SUMMARIZE

๋ฐ˜์‘ํ˜•

 

 

SUMMARIZE

Returns a summary table for the requested totals over a set of groups.

 

 

Syntax

SUMMARIZE (<table>, <groupBy_columnName>[, <groupBy_columnName>]…[, <name>, <expression>]…)

 

 

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, 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], [PRODUCT], [START], [END], [CNT]
)

 

 

 

 

 

docs.microsoft.com/ko-kr/dax/summarize-function-dax

 

SUMMARIZE ํ•จ์ˆ˜(DAX) - DAX

๋‹ค์Œ์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด์„ธ์š”. SUMMARIZE

docs.microsoft.com

 

 

๋ฐ˜์‘ํ˜•

'Power BI > DAX' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Power BI] DAX - GENERATE  (0) 2022.05.03
[Power BI] DAX - SUMMARIZECOLUMNS  (0) 2021.02.23
[Power BI] DAX - CALCULATE  (0) 2021.02.23
[Power BI] DAX - Dynamic Index  (0) 2020.09.01
[Power BI] DAX - The GENERATESERIES function  (0) 2019.08.07