๋ฐ์ํ
<์>
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
๋ฐ์ํ
'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 |