- Help Center
- Power BI
-
Data Science Bootcamp
-
Python Programming
-
Machine Learning
-
Data Analysis
-
Pricing
-
Registration
-
R Language
-
SQL
-
Power BI
-
Homework and Notebooks
-
Platform Related Issues
-
Programming and Tools
-
Large Language Models Bootcamp
-
Blog
-
Employment Assistance
-
Partnerships
-
Data Science for Business
-
Python for Data Science
-
Introduction to Power BI
How would you create trailing X month metrics via DAX against a non-standard calendar?
The solution will involve:
CALCULATE function to control (take over) filter context of measures.
ALL to remove existing filters on the date dimension.
FILTER to identify which rows of the date dimension to use.
Alternatively, CONTAINS may be used:
CALCULATE(FILTER(ALL(‘DATE’),…….))