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

Power BI/DAX

[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

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

docs.microsoft.com

 

 

 

 

 

๋ฐ˜์‘ํ˜•

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

[Power BI] DAX - SUMMARIZE  (0) 2021.02.23
[Power BI] DAX - SUMMARIZECOLUMNS  (0) 2021.02.23
[Power BI] DAX - Dynamic Index  (0) 2020.09.01
[Power BI] DAX - The GENERATESERIES function  (0) 2019.08.07
[Power BI] DAX - DATATABLE ํ•จ์ˆ˜๋กœ Static table ๋งŒ๋“ค๊ธฐ  (0) 2019.08.07