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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SrinathLM10
Helper I
Helper I

How to Create a New crossjoin table with filter

I am trying to create a new table with crossjoin for table2 and table3 but based on a filter which is A. Similar to the example below.

 

table1      table 2   table 3                        New Table

A  |  B     A | C | ids      A | ids                    C   |  ids | A

______     _________      _______                    _____________

p  | a      p | x | 1          P | 1                       x   |  1  | p

q  | b      p | x | 2          P | 2                       x   |  2  | p

r   | c      p | y | 3          p | 3                       x   |  3  | p

s   | d     p | y | 2          q | 4                       x   |  4  | q

t   | e      q | x | 5          q | 5                       x   |  5  | q

                                                                  y   | 1  | p

                                                                  y   | 2  | p

                                                                  y   | 3  | p

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SrinathLM10 , logic or cross join in nor very clear. You can merge in power query Using Column A. In DAx You can do inner join.

 

Refer https://radacad.com/append-vs-merge-in-power-bi-and-power-query

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

Let us know for last table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @SrinathLM10 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table1:

a1.png

 

Table2:

a2.png

 

Table3:

a3.png

 

You may create a calculated table as below.

NewTable = 
SELECTCOLUMNS(
    FILTER(
        CROSSJOIN(
            Table2,
            Table3
        ),
        [A2]=[A3]
    ),
    "C",[C],
    "ids",[ids2],
    "A",[A2]
)

 

Result:

a4.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@SrinathLM10 , logic or cross join in nor very clear. You can merge in power query Using Column A. In DAx You can do inner join.

 

Refer https://radacad.com/append-vs-merge-in-power-bi-and-power-query

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

Let us know for last table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors