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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Power BI Filter a Date column by another Date Column

I am new to Power BI and have a specific report request. My base table looks like below.

base_table1.PNG

 

Requirement #1 : Whenever, end user selects a specific 'Business Date', then the 'Due Date' which on or after that selected 'Business Date' should only get displayed. All the other older due dates shouldn't appear on the visual.

So far, I am able to store the 'Business Date' value what end user enters using 'SELECTEDVALUE()' function. But Power BI doesn't allow me to filter records by another column in Advanced Filtering.

 

Requirement #2 : Store the difference between selected 'Business Date' and all other future 'Due Date' like shown below. So that bucketing of days can be done and dispLay the bucket on visual.

output2.PNG

 

Please help me achieve it. @GilbertQ @Anonymous 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

create as column
Days diff = datediff([Business Date],[Due day], day)
Create a bucket on top of if

Have slicer on Business Date.
Create measure

loan =
var _max = maxx(table,table[Business Date])
return
CALCULATE(count(table[Loan]),[Due day] >=_max)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

To achieve the second requirement you can add a simple column like the one below

Day Diff = 
VAR __dayDiff = 'Table'[Due Date] - 'Table'[Bussiness_Date] 
RETURN IF( __dayDiff >= 0, __dayDiff )

For the first requirement, the table visual or any other visual can not propagate itself, therefore, you can use another visual or slicer to select Bussiness date and add your newly created column to the Filter Panes / Filters on this visual section with a setup as below.

image.png

 
Please see the attached file wit a solution for reference.
 
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous has the above replies helped. if you need more help make me @

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

To achieve the second requirement you can add a simple column like the one below

Day Diff = 
VAR __dayDiff = 'Table'[Due Date] - 'Table'[Bussiness_Date] 
RETURN IF( __dayDiff >= 0, __dayDiff )

For the first requirement, the table visual or any other visual can not propagate itself, therefore, you can use another visual or slicer to select Bussiness date and add your newly created column to the Filter Panes / Filters on this visual section with a setup as below.

image.png

 
Please see the attached file wit a solution for reference.
 
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

amitchandak
Super User
Super User

create as column
Days diff = datediff([Business Date],[Due day], day)
Create a bucket on top of if

Have slicer on Business Date.
Create measure

loan =
var _max = maxx(table,table[Business Date])
return
CALCULATE(count(table[Loan]),[Due day] >=_max)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors