Forum Discussion

gtrani's avatar
gtrani
Frequent Visitor
3 years ago
Solved

Create a new table using columns from three other tables.

Hello all,

I have the following tables (columns), they are related by the column DATE:

DIM_calendar (DATE)

FACT_sales (DATE/PRODUCT/REVENUE)

FACT_customers (DATE/#CUSTOMERS)

 

I would like to create a new table AVERAGE TICKET (DATE/REVENUE/#CUSTOMERS).

What options do I have to achieve this using DAX?

Thank you! πŸ™‚

  • Hey gtrani ,

     

    I'm not sure how the result should look like and what you want to do with that.

    But the following caluclated table would create a table with the following combinations:

    AVERAGE TICKET = 
    SUMMARIZECOLUMNS(
        DIM_calendar[DATE],
        FACT_sales[Revenue],
        FACT_customers[#Cutomers]
    )

     

    But I think you should explain a little bit better the purpose. I think the table above is not the best solution.

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution βœ”οΈ and give it a thumbs up πŸ‘

    Best regards
    Denis

    Blog: WhatTheFact.bi
    Follow me: twitter.com/DenSelimovic

1 Reply

  • selimovd's avatar
    selimovd
    Most Valuable Professional

    Hey gtrani ,

     

    I'm not sure how the result should look like and what you want to do with that.

    But the following caluclated table would create a table with the following combinations:

    AVERAGE TICKET = 
    SUMMARIZECOLUMNS(
        DIM_calendar[DATE],
        FACT_sales[Revenue],
        FACT_customers[#Cutomers]
    )

     

    But I think you should explain a little bit better the purpose. I think the table above is not the best solution.

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution βœ”οΈ and give it a thumbs up πŸ‘

    Best regards
    Denis

    Blog: WhatTheFact.bi
    Follow me: twitter.com/DenSelimovic