Forum Discussion

RMV's avatar
RMV
Icon for Helper V rankHelper V
9 years ago
Solved

Calculate accumulated value and grouping

Hi,

 

If I have 2 datasets

Dataset 1 is a grouped dataset based on Region, As of date, Type, Customer, as follow

Region        As of date       Type       Customer      Accum. Sales Amount

A                  7-Jan-17            New        001                 1000

A                  7-Jan-17            New        002                 1500

A                  7-Jan-17            New        003                 700

B                  7-Jan-17            Old          004                 300

B                  7-Jan-17            Old          005                 400

etc

 

Dataset 2 consists of delivery data in a raw data (transactional data) format

 

Question:

How to calculate the accummulated amount of delivery with the same period with As of date value in the 1st dataset, and also to group the data same as the 1st dataset? Since this two data needs to be combined and calculated.

 

Thank you

 

 

 

  • Hi RMV,

    since both table have a date the easiast way is to create a calendar table and make a relationship between this and the.other two tables and use the calendar table for your filters and axis in your visuals.

    Regarda,
    MFelix

2 Replies

  • Hi RMV,

    since both table have a date the easiast way is to create a calendar table and make a relationship between this and the.other two tables and use the calendar table for your filters and axis in your visuals.

    Regarda,
    MFelix
    • RMV's avatar
      RMV
      Icon for Helper V rankHelper V

      Hi MFelix, i was confuse at first. but after i tried, i got what you meant.

      Thanks a lot!