• Skip to main content
  • Skip to footer

Curbal

Learn how to grow your business with your data and Power BI

  • Data Stories
    • Power BI Stories
    • 1 dataset, 100 matplotlib visualizations
  • Learning Portal
    • Download Center
    • 25 Days Challenge
    • DAX Glossary
    • Power BI
    • Power BI by Topic
    • Python
    • 1 dataset, 100 matplotlib visualizations
  • Courses
    • Power BI Mini Master Class 1: Using a REST API as a data source
    • Power BI Master Class 1: COVID Tracker
    • Introduction to Power BI – FREE Online course
    • M Language + Power Query Course Bundle
    • Power Query Online Training [updated 2022]
    • M Language Online Course: The unofficial and Practical Reference Guide [updated 2025]
    • My Courses
  • Shop
    • Courses
    • Master Classes
    • Template Apps
    • JSON Themes
  • Cart
  • Register/ Log In
    • Become a Member
    • Log In
    • My account
    • My Courses
  • Search
  • Contact
You are here: Home / CM Tooltip Glossary Pro+ / DATEADD

DATEADD

posted on August 23, 2017

« Back to Glossary Index

Syntax

DATEADD(<dates>,<number_of_intervals>,<interval>)

Tutorial with example

DATEADD is a really useful function to create sets of dates backwords or forward from a point in time. It is used for Previous date calculations.
In this video, I show you how it works.

Link to DAX Studio: https://daxstudio.codeplex.com/

DAX Fridays #16: DATEADD

Download example file:

Link to YTD video and Power BI file: https://www.youtube.com/watch?v=5WGOTsYngCI

Example 2: Parallelperiod vs Dateadd

PARALLELPERIOD VS DATEADD DAX functions

DAX Fridays! #76: PARALLELPERIOD

Remarks

The dates argument can be any of the following:

  • A reference to a date/time column,
  • A table expression that returns a single column of date/time values,
  • A Boolean expression that defines a single-column table of date/time values.

The result table includes only dates that exist in the dates column.

If the dates in the current context do not form a contiguous interval, the function returns an error.

This DAX function is not supported for use in DirectQuery mode.

Need more examples to practice?

Comparing periods is something you should always do as it adds context to your data, but how do you calculate Same period last month?
PREVIOUSMONTH function will give you the entire previous month, so how do you do it?

DAX Fridays! #127: Calculate Same period last Month in DAX
Was this helpful?
Related Articles:
  • The ultimate dashboard to track your website growth with Google Analytics 4 and Power BI
See Also:
  • PARALLELPERIOD
  • SAMEPERIODLASTYEAR
« Back to Index

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer CTA

Join our community of +50,000 professionals

Become a Member

Subscribe to YouTube

About me:

Curbal AB
Badhusgatan 7B
722 15 – Västerås
Sweden

OrgNo: 5569680852 | VAT: SE556968085201

 

Location:

© Copyright 2014-2025 · Curbal AB · All Rights Reserved · Privacy Policy · Terms of Service · Refund Policy · Log In