Forum Discussion

Rygaard's avatar
Rygaard
Icon for Resolver I rankResolver I
5 years ago

Expectations for future (Start+End date and amount) how do i calculate expected income pr future day

Date table (6500 lines)

Sales lines table (2 mill lines, 65K lines that are offers)

 

In my Calender table i tried to make a sum pr day in a new Collumb.. but ran out of memory :

SalesThisDay = CALCULATE(SUM('Sales Line'[SL_Amount]),FILTER('Sales Header','Sales Header'[SH_PriceStartDate]< EARLIER(Calender[DateValue])),FILTER('Sales Header','Sales Header'[SH_PriceEndDate]>EARLIER(Calender[DateValue])),FILTER('Sales Line','Sales Line'[SL_Document_Type]=0))

 
(document_type=0 is sales offers only

 

I think i need a new table, but I really dont know what it sould inculde..

 

Excel example attached:

 

 

2 Replies