Forum Discussion
Looking for Previous Period Comparision
- 1 year ago
Rich_Wyeth , Go to modelling create a new table using
DAX
Calendar =
ADDCOLUMNS (
CALENDAR (DATE(2020, 1, 1), DATE(2023, 12, 31)),
"Year", YEAR([Date]),
"Month", MONTH([Date]),
"Day", DAY([Date]),
"Quarter", QUARTER([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"YearMonth", FORMAT([Date], "YYYY-MM")
)Change date as per your dates and create a relationship of this with original date column
Hi Rich_Wyeth
You can try with dateadd function .
or check this video for better understanding
https://www.youtube.com/watch?v=e_pB4MzGO2I
https://www.youtube.com/watch?v=Wwo-tY0B9pY&t=428s
https://www.youtube.com/watch?v=fP8oxU2DE9w
These videos would help you to write comparison for dynamic period either day/ week/month/ year is selected in date range.
I hope I answered your question!