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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
senthil_venkat
Frequent Visitor

NextMonth and Next Quarter ()

Hi All, I have a excel table which has due date. I am trying to identify the which all the rows that will be due in next month using the NextMonth(). But I am getting below error message. Can someone help me to fix this Nextmonth () ? Or Guide me how to calculate the rows has a due date as next month. 

 

 CodeFiling Due DateNextMonth DueNext Qtr Due
99M931-Jul-20NN
106515-Jul-20NN
106515-Aug-20YY
594531-Mar-19NN
367531-May-20NN
646531-Mar-19NN
350530-Sep-20NY
505530-Sep-20NY
173530-Sep-20NY
381531-Aug-20YY
381531-Aug-20YY
288531-May-20NN

 

image.png

 

 

 

 

 

 

5 REPLIES 5
amitchandak
Super User
Super User

@senthil_venkat , There is some logic problem. But please find my file after the signature. Check for this qtr, next qtr and next month. Also, if needed,  date>today in the next month formula just like  I added in this qtr.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
lbendlin
Super User
Super User

NEXTMONTH() works a bit different from what you expect.

 

https://docs.microsoft.com/en-us/dax/nextmonth-function-dax

 

Returns a table that contains a column of all dates from the next month, based on the first date in the dates column in the current context.

 

You need to test if your Filing Due Date is in the NEXTMONTH() table.

 

DueNextMonth := 'EFSS Entities'[Filing Due Date] IN NEXTMONTH(Dates[date])

 

Hi,

 

I am not seeing the expected results. I am getting just "False" for every row. Include July rows

 

I did try using  DateAdd function, but many rows are having blank values.  Any thoughts how to fix? 

 

DueNextQtr = (DateAdd('EFSS Entities'[Filing Due Date],1,QUARTER))
 
 
 
 
 
 
 
 
 
 

image.png

 

 

 

 

 

Did you link in your Dates table?  Or do you want to compare to "Today"  only?

I am not using any dates table. Just need to compare the filing date to Today's date and list out which are the rows that will be due next month and next quarter. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.