cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors