Forum Discussion
Measure using CALCULATE, FILTER and USERELATIONSHIP
Hello Community - The measure below works but with one important problem: it is referencing the wrong date.
In my salesorders table, we normally use "due date" and that is our primary connection to the date table. I have an inactive relationship to the date table with "order date" and that is the date I need to incorporate below. I've tried placing USERELATIONSHIP into the measure but with no luck.
We of course want to base our new customers on the date they placed an order, not the due date of the order. And that is what this measure needs to do.
You need to use CALCULATETABLE and USERELATIONSHIP for both your _CustomersThisMonth and _PriorCustomers variables.
3 Replies
- lbendlin
Super User
You need to use CALCULATETABLE and USERELATIONSHIP for both your _CustomersThisMonth and _PriorCustomers variables.
- julie_13579Regular Visitor
Formula works perfectly! Do you also have a formula for lost clients?
- lbendlin
Super User
RETURNCOUNTROWS(EXCEPT(_PriorCustomers,_CustomersThisMonth))