Skip to main content

Command Palette

Search for a command to run...

Power BI DAX: TOTALYTD

Updated
1 min read
M

Mohamad's interest is in Programming (Mobile, Web, Database and Machine Learning). He is studying at the Center For Artificial Intelligence Technology (CAIT), Universiti Kebangsaan Malaysia (UKM).

Total Sales YTD = 
TOTALYTD(
    [Total Sales], 
    'Date'[Date]
)

Calculating the cumulative total sales from the beginning of the year up to the current date.

Explanation:

  1. TOTALYTD: This function calculates the year-to-date total of a measure.

  2. [Total Sales]: This is the measure you want to aggregate.

  3. 'Date'[Date]: This specifies the date column from your 'Date' table.

14 views