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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
IliasKatsis
Helper I
Helper I

Filter to show an event in a date range and not in specific ones

Hello everyone, 

I have this kind of data, which refers to some events with a start and end date 

IliasKatsis_0-1665699754336.png

Bucket name is a short description! 

In my dashboard a have a table which returns all the active events for a specific date range.

IliasKatsis_1-1665699896326.png

The problem is that when i choose a @From_Date from the filter above the table, which is after the start date of the event, this events is not appeared in the table. Actually this event is active!

How these events with a From Date > Start Date can be shown in the table?
Thanks a lot !

3 REPLIES 3
amitchandak
Super User
Super User

@IliasKatsis ,

//Range is coming from independent table.  Date1 is independent Date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Start Date] <=_max && 'Table'[End Date] >=_min))

 

if range is coming from joined date tbale

 

new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Start Date] <=_max && 'Table'[End Date] >=_min), crossjoin(Date[Date], Table[Start Date]))

 

 

refer

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

I just want to show all the infomation about a bucket which are retirieved from a table. Each Bucket has a name, some aggragations and a start and end date. How is it possible to show all these infomation for the ranges i have already mentioned

lukiz84
Memorable Member
Memorable Member

Which measure do you use in the table?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.