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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Loading table based on condition

Dear all,

 

Good Morning!

 

I have two tables Overdue and Preclosure.

 

Overdue:

Loanno

Overdueamount

EMI

OverdueDate

 

Preclosure:

Loanno

PreclosureDate

 

Now in Overdue table  i want only the Loanno  which not exists in Preclosue table for current month and year.

 

 

Regards,

Joshua.

 

1 ACCEPTED SOLUTION

Hi @Anonymous

 

Try to filter the Preclosure Table first. Then use ‘Left Anti’  between Overdue table and Preclosure table.

 

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
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

7 REPLIES 7
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

You may try to use ‘Merge Queries’ with ‘Left Anti’ in Query Editor. Then you may filter the date with ‘Date Filters’ as below.

1.png2.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Dear Cherie,

 

Thanks for ur reply.Will Left Anti (rows only in first) will show the data of overdue table for only loanno that not exists in preclosure table?

 

 

Regards,

Joshua.

Hi @Anonymous

 

The data will be shown as below picture. If it is not your case, please share some data sample and expected output.

3.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Dear Cherie,

 

Let us consider a sample

 

Overdue:

Loanno  amount  overduedate

1            1000      22-01-2018

2            550        11-05-2018

3           2500        12-08-2018

4            3222       12-08-2018

 

Preclosure:

Loanno    Preclosureamount  Preclosuredate

 

             2500                       05-08-2018

 

 

Now i want to exclude the loano 3 in the overdue table as the amount was preclosed.It should work based on the condition where precloseddate=month(TodaysDate)&Year(TodaysDate).

Hi @Anonymous

 

Try to filter the Preclosure Table first. Then use ‘Left Anti’  between Overdue table and Preclosure table.

 

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Dear Cherie,

 

Where is the Filter Rows option present.

 

 

Regards,

Joshua.

Hi @Anonymous

 

You may find the "Custom Filter" to filter rows.

 

1.png

 

Regards,

Cherie

 

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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