Back to Browse

Difference In Dates PowerBI

79 views
Oct 28, 2024
2:30

Published on Oct 28,2024: n DAX (Data Analysis Expressions) for Power BI, the DATEDIFF function calculates the difference between two dates in a specified time interval, like days, months, quarters, or years. Here's the syntax: DATEDIFF(start_date, end_date, interval) start_date: The starting date for the calculation. end_date: The ending date for the calculation. interval: The unit of time you want to use for the difference. Options include: DAY MONTH QUARTER YEAR Example If you want to calculate the number of days between two date columns (StartDate and EndDate), you can write: dax DATEDIFF('Table'[StartDate], 'Table'[EndDate], DAY) Or, to calculate the difference in months: dax DATEDIFF('Table'[StartDate], 'Table'[EndDate], MONTH) This can be helpful for tracking periods, durations, or creating time-based calculations in Power BI. Let me know if you need any more specifics! SUBSCRIBE to learn more about Power BI,Power Query, Power Pivot, Excel,SQL Server and Python!! https://www.youtube.com/channel/UCYYHFZpm5GbaOmQKDNSTGLw Our Playists: SQL Playlist :https://goo.gl/PS5Ep6 DAX PlayList : https://goo.gl/S4W41D Power BI PlayList: https://goo.gl/dXxvnB Power Query Playlist: https://goo.gl/5QS7P4 Getting Started with Power BI:https://goo.gl/GHakLZ Getting Started with Python: https://goo.gl/n24P3w ABOUT DAGDOO: Website: Home Page: http://www.dagdoo.org/ Power BI Tutorials: http://www.dagdoo.org/excel-learning/tutorial-power-bi-desktop/ Questions? Comments and SUGESTIONS? You will find me here: Twitter: @dagdooe Category: Science & Technology License: Standard YouTube License

Download

1 formats

Video Formats

360pmp43.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Difference In Dates PowerBI | NatokHD