I'm new to PowerBI/DAX and having trouble figure out how to create a measure that gives me a distinct count of customers that had a signed form within the last 30 days. I have a customer ID field (Cust_ID), form signed date (FormSignDTS). This is what I tried...
Last 30 Days =
VAR _TodaysDate = Today()
VAR _StartDate = dateadd (Cutomer[FormSignedDTS], -30, Day)
return
calculate (distinctcount (Customer[CustID]), keepfilters (Customer[FormSignedDTS] >= _StartDate))
But it get the following error... "a date column containing duplicate dates was specified in the call to function dateadd"
Any help I receive on this will be greatly appreciated! Thanks