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.
I have to create custom date filter where Month start should be last months 13 and month end should be that months 12.
For Example -
Normally : January 2022 Starts - 1st ends at 31st
I need : January 2022 Start - 13th Dec 2021 and should end on 12 Jan 2022
Like wise every month should start at 13th of last month and end on 12th of that perticular month.
Solved! Go to Solution.
Hi @mesuyog ,
What's your expected output? If you want to simply apply a date filter, you may drag Date column to Slicer field, then you could custom date period:
Or if you want to re-arrange the date month, for example,
2021 December is from 2021/12/13 to 2022/1/12
2022 January is from 2022/1/13 to 2022/2/12
Please create a column:
New YearMonth =
var _date=IF(DAY([Date])>=13,[Date],EOMONTH('Table'[Date],-1))
return FORMAT(_date,"yyyy mmmm")
And I created another column for sort:
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mesuyog ,
What's your expected output? If you want to simply apply a date filter, you may drag Date column to Slicer field, then you could custom date period:
Or if you want to re-arrange the date month, for example,
2021 December is from 2021/12/13 to 2022/1/12
2022 January is from 2022/1/13 to 2022/2/12
Please create a column:
New YearMonth =
var _date=IF(DAY([Date])>=13,[Date],EOMONTH('Table'[Date],-1))
return FORMAT(_date,"yyyy mmmm")
And I created another column for sort:
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You didnt mention it, perhaps you can try pattern down below
Just adjust dates for your requirements
Try something like this
Thanks but it will not work as I need to create the same for all years. I have data for total 5 years and will be updating moving forwarad.
You didnt mention you've got multiple years
Try this, just adjust dates up to your requirements ( i dont know your dates )
by this way you have filter for multiple scenarios and you can filter by your result as per visual
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 |
---|---|
97 | |
96 | |
82 | |
74 | |
66 |
User | Count |
---|---|
121 | |
105 | |
102 | |
82 | |
72 |