Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
CMMkamil
Frequent Visitor

How to set date filter to previous month?

Hello,

 

Probably very simple but I can't seem to find a way for the life of me. 

 

Basically I have two cards, one is showing the total profit in the current month(February) and I want the other to show the previous month so January in this case. But I want those to update automatically at months move on. 

 

For the first card I simply have the filter set to "Show items when the value: is in this month"

CMMkamil_0-1645188151453.png

 

But how do I set it for the previous month i.e. January and not last 30 days?

CMMkamil_1-1645188191211.png

 

Many thanks,

 

Kamil

1 ACCEPTED SOLUTION
AmberJane
Helper III
Helper III

You should have an option for the last "Calendar month".

View solution in original post

5 REPLIES 5
Pbiuserr
Post Prodigy
Post Prodigy

Hi, 
You can create new column in your calendar table to highlight previous month


Period = Switch( True(),
eomonth(Date[Date],0) = eomonth(Today(),-1),"Previous month" ,
Format(Date[Date],"MM YYYY"))

and then, when the date changes, previous month will move along. Simply use it as a filter for the card

AmberJane
Helper III
Helper III

You should have an option for the last "Calendar month".

It turns out that I'm just very blind. Sorry and thank you. 

Not at all! I got stuck on this too with week and month haha! 

ITManuel
Responsive Resident
Responsive Resident

Hi,

 

you could apply the filter in the calculation not in the Filter pane.

 

CALCULATE("Total profit"), PREVIOUSMONTH('Date'[Date]))

 

Br

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.