Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Use Single Processing Date for Calculations

I'm pretty new to Power BI and this may be an obvious item for many of you, but would greatly appreciate the help.  

 

I have a set of data that is loaded each night after the day's processing.  The data includes information on customers and purchases.  One of the measurements I need to create is the Days Since Customer Added.  I have a table with the date that a customer registered and need to compare that to the Processing Date for the platform that comes in on table with one row of data and one column (cannot use system date/time, have to use the value from the control table).  

 

Simple Structure - Customers 

Customer NumberDate Registered
1003/1/2021
1013/15/2021
1024/1/2021
1034/15/2021

 

Processing Date Table

System Processing Date
6/1/2021
 

 

What I need is a measure or a column that does a DATEDIFF between the Date Registered value and the System Processing Date value.  If adding new column I'd need it to look like this....

CustomerDate RegisteredDays Since Registration
1003/1/202192
1013/15/202178
1024/1/202161
1034/15/202147

2 Replies