Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi guys, I currently have a report page that is filtered by a date column in a date table. This is currently on a slicer tool with a single select for year, month, as shown below:
And when that month is selected, all finances on that page are selected for that specific month. However, I want to make it so that it shows all finances for the previous month instead. So when I select October 2021, really it shows me the finances for September 2021.
I know there is a DAX function called PREVIOUSMONTH:
FinanceMonth = PREVIOUSMONTH('Date'[Date].[Month])
But I'm not sure how to apply it in this context. I've tried creating the PREVIOUSMONTH with this current date column and date table but it won't allow me to add it to the slicer. Is there any suggestions or help on how I've went wrong and how to rectify this problem?
Solved! Go to Solution.
Hi,
It will work like this
=calculate([Totalsales],previousmonth(calendar[date]))
Hope this helps.
Here is a sreenshot for your reference:
1) create a table with current month and previous month. "Previousmonth" can be used to create Prev column,
2) create relationship between the date/month in your finance table, and "Prev" month..
Hope this help.
Hi,
It will work like this
=calculate([Totalsales],previousmonth(calendar[date]))
Hope this helps.
Hi @Ashish_Mathur thank you, it does involve creating a of measures this way because I have several finance data that is being displayed, but it still works so thank you.
You are welcome.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |