Solved: sum column - Microsoft Power BI Community
community.powerbi.com › t5 › DesktopNov 13, 2019 · Create columns in Calendar table. Month = MONTH ('Calendar' [Date]) Month Name = FORMAT ('Calendar' [Date],"mmm") 3. Create relationship. 4. Create measures. MTD = TOTALMTD (SUM ('Table' [quantiti]),'Calendar' [Date]) YTD = IF ( NOT ( ISBLANK ( MAX ( 'Table' [quantiti] ) ) ), TOTALYTD ( SUM ( 'Table' [quantiti] ), 'Calendar' [Date] ) )
SUM function (DAX) - DAX | Microsoft Learn
learn.microsoft.com › en-us › daxJun 21, 2022 · Adds all the numbers in a column. Syntax DAX SUM(<column>) Parameters Return value A decimal number. Remarks If you want to filter the values that you are summing, you can use the SUMX function and specify an expression to sum over. Example The following example adds all the numbers that are contained in the column, Amt, from the table, Sales. DAX