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
nirvana_moksh
Impactful Individual
Impactful Individual

DAX Issues

Hey All,

 

I am trying to using EVALUATE (or anything better) table function in DAX and it keeps giving me a error (red line under EVALUATE).

 

  1. I have two Table's - Table 1 and Table 2. Table 1 has all ID's that I want in the resulting final table and everything else from Table 2
  2. Table 2 is a DAX Generated Table so I cannot use Power Query Merge option since it does not show up there, if it did I was golden

I am trying to achieve the below:

 

TABLE 1 WITH ALL ID'S - 

 

TABLE 1 IDCOLUMN1COLUMN2COLUMN3COLUMN4COLUMN5
1XABTTYYIYT
2YBCTGYYYRTS
3ZCDTHHQQQHHD

 

 

 

TABLE 2 WITH ONLY 1 MATCHING ID 

 

TABLE 2 IDDESCRIPTIONVALIDITYTENURE
1THIS IS ON SALEYES12 MONTHS
23232THIS IS OUT OF STOCKNO2 MONTHS
112341DISCOUNTEDYES

3 MONTHS

 

 

 

 

RESULTING TABLE THAT IS NEEDED

 

TABLE 1 IDDESCRIPTIONVALIDITYTENURE
1THIS IS ON SALEYES12 MONTHS
2NULLNULLNULL
3NULLNULLNULL

 

 

I know the above is easily availbale with Merge and then do a LEFT JOIN in it in Power Query, but my Table 2 is a DAX Generated Table which does not show up on the Power Query side for me to MERGE with Table 1. 

 

 

Thank You

2 REPLIES 2
MFelix
Super User
Super User

Hi @nirvana_moksh,

 

Create a relationship between both tables then add the TABLE1 ID to your table visual and the Other columns from table 2.

 

then filter out all blanks from TABLE1 ID

 

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



So when I do that then the resulting Table only shows values that are also present in Table 2 based on the ID, I have the relationship set already. I just want all ID's from Table 1 and corresponding values from Table 2 and nulls for where there is no value present in Table 2. I did play with EVALUATE and GENERATEALL but that did not get me where I wanted this to be.

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.