Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
gtrani
Frequent Visitor

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! 🙂

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

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

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

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

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

Top Solution Authors