Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Any suggestions on creating a custom column to identify data for last month?
Date table shown below. If the currenly in October 2023. I would like to see only data from September 2023 to today. This should be dynamic from month to month.
This effort is to reduce the number of rows queried, improve performance.
Thanks!!
Julie Bunavicz
Solved! Go to Solution.
Here is one method that should work for you. Create a CustomColumn:
Date.IsInPreviousNMonths( [Date],1) or
Date.IsInCurrentMonth( [Date] )
Then apply a Filter for "True"
Hope this works for you.
Regards,
That works nicely. Thanks!!
Here is one method that should work for you. Create a CustomColumn:
Date.IsInPreviousNMonths( [Date],1) or
Date.IsInCurrentMonth( [Date] )
Then apply a Filter for "True"
Hope this works for you.
Regards,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 41 | |
| 22 | |
| 17 |
| User | Count |
|---|---|
| 186 | |
| 116 | |
| 94 | |
| 64 | |
| 45 |