Forum Discussion

Tonasco's avatar
Tonasco
Frequent Visitor
4 years ago

Create stacked area chart with multiple tables

Hi all, I need to create a stacked area chart for invoice projection by month with multiple tables from SQL and columns from excel. 

The output should be as the chart created in Excel below:

 

 

Table import from SQL:
1) InvoiceHeader - to get each month Invoiced Value

2) OrderRel - to calculate overdue Sales order value, and open SO value for coming months

 

Table get from Excel:

1) Confirmed sales value by month

2) Regular buying sales value by month

3) Predict new sales value by month

 

For past month, take only Invoiced Value.

For current months, take overdue Sales order value plus current month open sales order and current month invoiced value For For coming months, take all value from table from excel plus open sales order to get the total invoice value projection.

 

I am trying to build the area chart but I always get the backlog spreading by month. 

 

 

Anyone can help to advise how to proceed please 🙏