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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
NilR
Post Patron
Post Patron

Slicer Date Range between two columns (filter help)

Hi,

This is my Slicer NilR_0-1702662792333.png

 

I need to figure out in this date range exist anywhere between these rows for each group#?

NilR_1-1702662964380.png

So I wanna say if

_Min_Date_Slicer is between Min(Inc_Start) and Max(Inc_Start) 

__Max_Date_Slicer is between Min(Inc_End) and Max(Inc_End) 

FILTER(
'Table', GROUP#=_GRP &&
_MIN_Date_Slicer >= MIN([INC_START]) && _MIN_Date_Slicer <= MAX([INC_START]) &&
_MAX_Date_Slicer >= MIN([INC_END]) && _MAX_Date_Slicer <= MAX([INC_END])
)

 

 

Can you help with this function? Thanks!

1 ACCEPTED SOLUTION
NilR
Post Patron
Post Patron

Found solution:

 

CALCULATE(SUMX(VALUES('TBL'[GROUP#]),1),
FILTER(
'Table', GROUP#=_GRP &&
(_MIN_Date_Slicer >= MIN([INC_START]) && _MIN_Date_Slicer <= MAX([INC_END])) ||
(_MAX_Date_Slicer >= MIN([INC_START]) && _MAX_Date_Slicer <= MAX([INC_END]))
)
)

View solution in original post

1 REPLY 1
NilR
Post Patron
Post Patron

Found solution:

 

CALCULATE(SUMX(VALUES('TBL'[GROUP#]),1),
FILTER(
'Table', GROUP#=_GRP &&
(_MIN_Date_Slicer >= MIN([INC_START]) && _MIN_Date_Slicer <= MAX([INC_END])) ||
(_MAX_Date_Slicer >= MIN([INC_START]) && _MAX_Date_Slicer <= MAX([INC_END]))
)
)

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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