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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.