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
Thimma
Frequent Visitor

DAX Help

Hi,

 

I have two tables pls refer the below tables . Table 1 and Table 2. There is no join between two tables.

 

Table 1:

Code      Date              ID        Test       Technology
ABC1     17-Dec-22     123      Pass         Java
ABC2     17-Dec-22     135      Pass        Java
ABC2     18-Dec-22     135      Pass        Java
ABC3     18-Dec-22     156      Pass        Java
ABC4     18-Dec-22     166      Pass        Testing
ABC5     18-Dec-22     176      Pass        Testing
ABC6     19-Dec-22     186      Pass        Testing

 

Table 2: 

ID          Code        Technology
123        ABC1         Java
135        ABC2         Java
156        ABC3        Java
166        ABC4        Testing
176        ABC5        Testing
186       ABC6         Testing

 

Expected output in the report:

 

Code       Date                  ID          Pass Or Fail       Technology
ABC1       17-Dec-22       123           Pass                Java
ABC2       17-Dec-22       135           Pass                Java
ABC3       17-Dec-22       156           Fail                 Java
ABC1       18-Dec-22       123           Fail                 Java
ABC2       18-Dec-22       135           Pass               Java
ABC3       18-Dec-22       156           Pass               Java
ABC4       19-Dec-22       166           Fail                Testing
ABC5       19-Dec-22       176           Fail                Testing
ABC6       19-Dec-22       186           Pass              Testing

 

Table 1: I get only records which are passed in the daily exams.

Table 2: A kind of Code master table.

 

Expected out put: I would like to get a report which should give all the code records whether passed or failed on daily basis along with the other data from the table 1.

 

Not sure how to write dax to get Pass or Fail column data for all the codes.

 

Appreciated your help.

 

Thanks,

3 REPLIES 3
Thimma
Frequent Visitor

any help experts

Thimma
Frequent Visitor

We are tracking all the codes with all the exam dates whether he is passed or failed. so not sure why its not making any sense.

AlexisOlson
Super User
Super User

I can't make sense of this. Why does the expected output only have Fail for ABC4?

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.