cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
brirack
New Member

DAX measure for count of rows in previous month

Hi All,

I need a DAX measure to count the rows for previous month hires please. I have a report and date table with relationship and I have 1st measure: 

Hires in Month = COUNT('ABCD2021'[Month Hires]) which calculates the hires in month but I need a 2nd measure to go back a month? Help! Thanks 🙂
1 REPLY 1
wdx223_Daniel
Super User
Super User

calculate([Hires in Month],DateADD(DateTable[Date],-1,MONTH))

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.