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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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