Forum Discussion

mussaenda's avatar
mussaenda
Community Champion
6 years ago
Solved

Put custom value between given dates

Hi,

 

I have this data:

Cust No  Posting Date

C1000110/02/2019
C1000126/02/2019
C1000110/04/2019
C1000130/04/2019
C1000130/04/2019
C1000108/05/2019
C1000115/05/2019
C1000115/05/2019
C1000115/05/2019
C1000129/05/2019
C1000129/05/2019
C1000129/05/2019
C1000129/05/2019
C1000129/05/2019
C1000129/05/2019
C1000129/05/2019
C1000129/05/2019
C1000130/06/2019
C1000130/06/2019
C1000130/06/2019
C1000130/06/2019
C1000130/06/2019
C1000102/07/2019
C1000114/08/2019
C1000114/08/2019

 

Then I would like to give a custom value like this:

24/02/2019 - 31/10/2019 : 242169

23/03/2019 - 31/10/2019 : 363003

11/07/2019 - 31/12/2019 : 216071

 

So Final output will be:

 

  Cust No          Posting Date     Value(calculated)

C10001       10/02/2019      242169
C1000126/02/2019242169
C1000110/04/2019605172
C1000130/04/2019605172
C1000130/04/2019605172
C1000108/05/2019605172
C1000115/05/2019605172
C1000115/05/2019605172
C1000115/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000129/05/2019605172
C1000130/06/2019821243
C1000130/06/2019821243
C1000130/06/2019821243
C1000130/06/2019821243
C1000130/06/2019821243
C1000102/07/2019821243
C1000114/08/2019821243
C1000114/08/2019821243
C1000114/11/2019216071

 

Adding the value depends on the date range.

 

I need to show this in data (column) not in a table visual.

This is possible, right?

Thank you! 

 

If i will put this in a table visual, this will be the output:

 

Date Slicer: 14/08/2019

Table Visual:

C10001  821243

 

Date Slicer: 29/05/2019

Table Visual:

C10001  605172

 

 

 

9 Replies

  • Hi,

    This calculated column formula works

    =CALCULATE(SUM(Data1[Value]),FILTER(Data1,Data1[Lower]<=EARLIER(Data[Posting Date])&&Data1[Upper]>=EARLIER(Data[Posting Date])))

    Hope this helps.

    • mussaenda's avatar
      mussaenda
      Community Champion

      Value is manual input.

      How can I input the value?

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        I do not understand your question/comment.  The Data1 Table is a 3 column Table.