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
Anonymous
Not applicable

Check for differing values in two different columns in different tables

Hello,

 

I have two tables that both contain a column named [packaging]. The first column is the data from this week (let's call it 'ThisWeek') and the other column is data from the week previous (let's call it 'LastWeek'). Now, some values in 'LastWeek'[packaging]' are 'NONE' (indicating no packaging known yet, fyi). It's possible that we receive info on the packaging of these orders during the week, in which case the same order numbers in 'ThisWeek'[packaging] will state 'CARTONS' or 'BALES'. The records for which the packaging became known are of interest to me.

 

So, how can I filter or otherwise identify the records that stated 'NONE' in 'LastWeek'[packaging] and something other than 'NONE' in ThisWeek'[packaging]? I thought about using something like 'IF 'LastWeek'[packaging]="NONE" AND 'ThisWeek'[packaging]<>"NONE", TRUE' in a calculated column to find these values but my dax knowledge is limited at best so I don't know how to do this correctly.

 

If you need clarification i'm glad to oblige. Thanks in advance.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may try Merge Queries and Conditional Column in Query Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may try Merge Queries and Conditional Column in Query Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.