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
tvanover
Helper II
Helper II

create visual that show records that are in table A but not in table B: how to do it?

hi,

 

I am running a warehouse where I need to track items that are at risk of expiring.

to do that, I want to make:

1) a list of all items currently on stock -> table A

2) a list of all items that have been ordered in the last 6 months -> table B

 

show only records that are in table A but not in table B

 

How can I do that?

 

thanks,

tom

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

Hi  @tvanover  ,

According to your description, I create some data:

Table A: Dates from 2020.6.1 to 2021.4.3

v-yangliu-msft_0-1619405762908.png

Table B: Dates from 2020.11.1 to 2021.4.3

v-yangliu-msft_1-1619405763147.png

Here are the steps you can follow:

1. Create measrue.

Measure =
IF(
    MAX('TableA'[date])<MIN('TableB'[date])||MAX('TableA'[date])>MAX('TableB'[date]),1,0)

2. Place the measure in the Filter, select is =1, Apply filter.

v-yangliu-msft_2-1619405763151.png

3. Result.

Table A shows that there is no data from Table B

v-yangliu-msft_3-1619405763153.png

 

 

Best Regards,

Liu Yang

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-yangliu-msft
Community Support
Community Support

Hi  @tvanover  ,

According to your description, I create some data:

Table A: Dates from 2020.6.1 to 2021.4.3

v-yangliu-msft_0-1619405762908.png

Table B: Dates from 2020.11.1 to 2021.4.3

v-yangliu-msft_1-1619405763147.png

Here are the steps you can follow:

1. Create measrue.

Measure =
IF(
    MAX('TableA'[date])<MIN('TableB'[date])||MAX('TableA'[date])>MAX('TableB'[date]),1,0)

2. Place the measure in the Filter, select is =1, Apply filter.

v-yangliu-msft_2-1619405763151.png

3. Result.

Table A shows that there is no data from Table B

v-yangliu-msft_3-1619405763153.png

 

 

Best Regards,

Liu Yang

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.