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
lync0056
Helper I
Helper I

Show Row Based on a Start Date and End Date

Hi All,

 

Hopefully simple one... I have 2 Tables -

A Project Table which holds 2x columns - A Start Date and an End Date

A generic Date Table


Currently the model has a relationship between End Date and the Date Table.

 

I have a Date table filter on the page of November 2019.

 

1 Row from the Project Table has a start date of 1 September 2019 and end date of 31 December 2019.

 

Therefore because of the relationship with End date, it does not show. I need it to show because the month of November falls between the Start and End date.

 

Help please.

 

 

Cameron

1 ACCEPTED SOLUTION
Anonymous
Not applicable

remove relationship between two tables.

 

USe your generic table in slicers whatever it is after slicer before slicer or between slicer.

 

Create one measure.

Filter= IF(Min(project[StartDate])<=min(Calendar[Date]) && Min(project[CloseDate])>=min(Calendar[Date]),1,-1 )

 

Add this measure in visual level filter and set it to 1.

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

remove relationship between two tables.

 

USe your generic table in slicers whatever it is after slicer before slicer or between slicer.

 

Create one measure.

Filter= IF(Min(project[StartDate])<=min(Calendar[Date]) && Min(project[CloseDate])>=min(Calendar[Date]),1,-1 )

 

Add this measure in visual level filter and set it to 1.

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

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.

Top Solution Authors