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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Aswinraj
Frequent Visitor

Dax Filter current and previous months

Hello,

 

I created a Dax forumal as "

IsCurrentMonth = IF(YEAR(CAL[Date])=YEAR(TODAY()) && MONTH(CAL[Date])= MONTH(TODAY()),"Current", "Previous")"
 and when I Choose "Select All" or "Current Month" or "Previous Month", the Dates calander bleow changes accordingly.
Aswinraj_0-1678525531339.png

But If I Choose the Date Jan in the Calander filter and when I want to go to Current Month,  I will be choosing the "Current Month" Slicer. This time, the calander filters only from 1st to 31st Jan. But it has to show the data for Current Month which is March.

 

Aswinraj_1-1678525950411.png

 

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

Though unrelated, this video illustrates how to create 2 unrelated date slicers.

https://www.youtube.com/watch?v=nUhU-tXftuM

lbendlin
Super User
Super User

Ok, what is your question ? Is your "current month slicer" fed from a disconnected table?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.