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
vineetdubey
Regular Visitor

Date Range Filter on two different tables

Hi ,

I have

TableA  - having columns CName  , Amount , startdate ,Enddate 

TableB  - Cname ,Detail1 , Detail2 , ImplantDate.

 

I need to set a report level filter on Cname and StartDate, EndDate 

 

Based on the above criteria 

Page1 ->Visualization #1  filter on  TableA.StartDate, EndDate and CName

Page1 ->Visualization #2  based on TableA.StartDate, EndDate and CName 

 

Please help.!!!

 

Regards,

Vineet

2 REPLIES 2
vineetdubey
Regular Visitor

 

Page1 ->Visualization #1  filter on  TableA.StartDate, EndDate and CName

Page1 ->Visualization #2  Show data of TableB having TableB.ImplantDate between  TableA.StartDate, TableA.EndDate

 

I am not sure if  Visualization #2   filters is possible in Power BI or Not ???

Hi @vineetdubey,

 

If you can share a sample, we can make it more clear. The solution could be as follows. It depends on your data model.

1. Create a measure like below.

measure =
IF (
    MIN ( 'tableb'[Implantdate] ) > MIN ( tablea[StartDate] )
        && MIN ( 'tableb'[Implantdate] ) < MIN ( tablea[EndDate] ),
    1,
    BLANK ()
)

2. Filter out the blanks using a filter or a slicer.

 

Best Regards,

Dale

Community Support Team _ Dale
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.