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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
abeirne
Helper II
Helper II

Showing current month and future months

Hi all, I am trying to figure out the proper dax for filtering my date table to show the current month and future months. I am working on a PACE/lead time report. I have this column in my calendar table:

IF(
      CalendarQ[Year] >= YEAR(TODAY()) && CalendarQ[Month] >= MONTH(TODAY()),
      1,
      0
)
But this only shows today to EOY and next year after the current month. I wanna see the current month and forward months.

abeirne_0-1662741925086.png


I can do 
IF(
      CalendarQ[Date] >= TODAY(),
      1,
      0
)
But that only shows current day + and I would like to see current month + .

Thank you for your help.

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

[Your Column] = 
var CurrentYear = YEAR( TODAY() )
var CurrentMonth = MONTH( TODAY() )
var CurrentMonthId = CurrentYear * 100 + CurrentMonth
var Output = INT( 'Calendar'[MonthId] >= CurrentMonthId )
return
    Output

Create a column in your Calendar that's MonthId = year( [date] ) * 100 + month( [date] ). You'll then use this in the formula above.

View solution in original post

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

[Your Column] = 
var CurrentYear = YEAR( TODAY() )
var CurrentMonth = MONTH( TODAY() )
var CurrentMonthId = CurrentYear * 100 + CurrentMonth
var Output = INT( 'Calendar'[MonthId] >= CurrentMonthId )
return
    Output

Create a column in your Calendar that's MonthId = year( [date] ) * 100 + month( [date] ). You'll then use this in the formula above.

Awesome thank you!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.