Day29 - Power Pivot - DAX - MTD | QTD | YTD | Previous and Next Functions | SamePeriodLastYear

Аватар автора
Power BI оптимизация
DAX (Data Analysis Expressions) is a formula language used in Power BI and other Microsoft products like Excel and Analysis Services. DAX includes a set of time intelligence functions specifically designed to perform calculations and analysis on time-related data. These functions help you work with dates, time periods, and perform calculations such as year-to-date, month-over-month, and more. Here are some commonly used DAX time intelligence functions in Power BI: TOTALYTD: This function calculates a cumulative total for a measure from the beginning of the year (or any specified starting date) to the given date. TOTALMTD: Similar to TOTALYTD, this function calculates a cumulative total for a measure from the beginning of the month (or any specified starting date) to the given date. TOTALQTD: This function calculates a cumulative total for a measure from the beginning of the quarter (or any specified starting date) to the given date. SAMEPERIODLASTYEAR: This function allows you to retrieve data for the same time period in the previous year. It is useful for year-over-year comparisons. DATEADD: This function allows you to add or subtract a specific time period from a given date. For example, you can use DATEADD to calculate the date for the same day last year or the same month next year. DATESBETWEEN: This function filters a table based on a specified date range. It is commonly used to calculate measures for a specific time period, such as sales between two dates....

0/0


0/0

0/0

0/0