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

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
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.