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!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!