Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Is it possible to build this table? (matrix/table with multiple dates)

Hi, I was wondering if anyone could advise me how to achieve the below.. or if it's even possible at all!

I have 2 tables, a Sales table and a Payment table structured like the below. 

The 2 are joined using the ContractID column. What I want to see is a matrix that shows me at the top, the sum of (sold amount) per monthyear. Then on the left, I want to see the payment dates by month year, and any payments that have been made. My ideal output would look like the below.

The yellow line being the total sold by month-year, and the green lines being all the payments that have been made from the payments table. I don't really know where to start with this one, ioes anyone have any advice on how to achieve this?

 



  • Hi Anonymous ,

     

    Maybe something like this?

     

     

    You need two different date dimensions, one for payments and the other one for sales. After that you can drag the YearMonth attribute (or any other attribute that your date dimension has) of both of them into a matrix visual like this:

     

    Depending on your requirements, you can then play around with different totals and whether you would like to "show items without data" etc.

     

    /Tom
    https://www.tackytech.blog/
    https://www.instagram.com/tackytechtom/

     

     

     

1 Reply

  • tackytechtom's avatar
    tackytechtom
    Icon for Most Valuable Professional rankMost Valuable Professional

    Hi Anonymous ,

     

    Maybe something like this?

     

     

    You need two different date dimensions, one for payments and the other one for sales. After that you can drag the YearMonth attribute (or any other attribute that your date dimension has) of both of them into a matrix visual like this:

     

    Depending on your requirements, you can then play around with different totals and whether you would like to "show items without data" etc.

     

    /Tom
    https://www.tackytech.blog/
    https://www.instagram.com/tackytechtom/