Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
How can I create a filter that shows only the last 3 months of a date field? I have a column of data called Created Date and in a specific dashboard/component I want to show data for the last three months. Instead of manually selecting the last three months every month was hoping to create a formula of some sort so that the dashboard components update each month on it's own. Is this possible?
Thanks,
Arun
Hi @aviswana27,
Create a calculated to check if the date is under the last 3 month or not, and then drag this new created calculated into a slicer visual to filter the data.
Last3Month = IF(AND(YEAR(TODAY())=YEAR('Date'[CalendarDate]),(MONTH(TODAY())-MONTH('Date'[CalendarDate]))<3),"Last 3 month","Other")
Regards,
Charlie Liao
MonthsAgo=DATEDIFF(TODAY(),[Created Date],MONTH)
Create as a new column and then use that to filter < 2.
If you need year factored in, you might have to do some slighly more complicated calculations.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |