successken
New Member
- Joined
- Oct 3, 2011
- Messages
- 27
Below is formula used in a powerpivot for a total number of orders for a single customer on the same day.
=CALCULATE(COUNTA(MVE_orders[orderid]), ALLEXCEPT(MVE_orders, MVE_orders[orderdate], MVE_orders[patientid]),MVE_orders[Job Type]<>"Doctors Order")
How can I expand this to obtain the total numbers of orders for the past 30 days including today?
Thank you in advance for your help with this!
=CALCULATE(COUNTA(MVE_orders[orderid]), ALLEXCEPT(MVE_orders, MVE_orders[orderdate], MVE_orders[patientid]),MVE_orders[Job Type]<>"Doctors Order")
How can I expand this to obtain the total numbers of orders for the past 30 days including today?
Thank you in advance for your help with this!