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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BrianRiggin
Frequent Visitor

Combining Two DAX Expression Tables into One... Uniquely?

Sorry, I'm sure there is a word or term to describe how I'm trying to combine/merge/??? them other than "uniquely", but I couldn't think of it.

 

I need to build a custom DAX table from two other DAX table expressions (one using FILTER, the other DISTINCT from source tables).  How do??

 

DAX Expression 1 - DISTINCT(NameTable[Name])                     

a

b

 

DAX Expression 2 -  FILTER(CALENDARAUTO(),[Date]>=[StartDateMeasure]&&[Date]<=[EndDateMeasure]&&WEEKDAY([Date])=3)

1

2

3

*Note:  The measures are fixed dates.  I'm essentially getting all the Tuesdays between two dates

 

Custom DAX Table

1

a

2

a

3

a

1

b

2

b

3

b

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @BrianRiggin ,

you can use CROSSJOIN function.

CROSSJOIN ('Table1','Table2')

https://dax.guide/crossjoin/

 

If this post helps, please mark it as solution!!!

 

View solution in original post

2 REPLIES 2
mangaus1111
Solution Sage
Solution Sage

Hi @BrianRiggin ,

you can use CROSSJOIN function.

CROSSJOIN ('Table1','Table2')

https://dax.guide/crossjoin/

 

If this post helps, please mark it as solution!!!

 

That was perfect!  Thanks!  Also, I guess the term I was looking for was a "Cartesian Product" rather than "...uniquely".  So I learned two things!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors