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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
gcrespo
Helper I
Helper I

Get calculated table from multiple tables

Hi everyone,

I have 2 different tables like the following ones:

 

  • Table 1:

client_id | client_name

1 | client_one

2 | client_two

3 | client_three

 

  • Table2:

tactic_id | tactic_name

TA0001 | tactic_one

TA0002 | tactic_two

TA0003 | tactic_three

TA0004 | tactic_four

 

I would like to get a calculated table like the following one:

 

client_name | tactic_id

client_one | TA0001

client_one | TA0002

client_one | TA0003

client_one | TA0004

client_two | TA0001

client_two | TA0002

client_two | TA0003

client_two | TA0004

client_three | TA0001

client_three | TA0002

client_three | TA0003

client_three | TA0004

 

The tables are not related in any way. I just want a calculated table that automatically puts all the tactics along with all the customers. Could someone please provide some help?

 

Regards,

Gabriel Crespo

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @gcrespo 

Would something like this help?

 

 

MyTable = 
    SELECTCOLUMNS(
        CROSSJOIN(
            'Table1',
            'Table2'
        ),
        "client_name", [client_name],
        "tactic", [tactic_id ]
    )

 

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

2 REPLIES 2
gmsamborn
Super User
Super User

Hi @gcrespo 

Would something like this help?

 

 

MyTable = 
    SELECTCOLUMNS(
        CROSSJOIN(
            'Table1',
            'Table2'
        ),
        "client_name", [client_name],
        "tactic", [tactic_id ]
    )

 

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Hi @gmsamborn 

It works perfectly! Thank you!!

 

Regards,

Gabriel Crespo

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors