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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Filter report on date between other column dates

Hi, community,

 

I have a table, such as:

Project IdCycle IdCycle StartCycle Finish
111/02/20215/03/2021
211/02/20215/03/2021
328/03/202111/03/2021
428/03/202111/03/2021
528/03/202111/03/2021

In the report, I want to filter out all projects which are not in the current cycle.

 

Thanks

Evan

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@amitchandak , I have figured out how to do this.

To explain a little more about the task, I have different reports on current project cycle, next project cycle and so on. Thus, I needed to filter out the content by cycle timeframe. 

I used Greg Deckler's reply here https://community.powerbi.com/t5/Desktop/Power-Query-If-x-number-is-between-x-and-y-then-quot-Delete... to index all current and future cycles, so that I got 1 for current, 2 for next etc., and applied page filter based on the cycle number.

 

Thanks

Evan

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Can you explain with examples. The expected output is not clear to me .

 

Try a measure like this with independent date table

measure =
var _max1 = maxx(allselected('Date'), Date[Date])
var _min1 = minx(allselected('Date'), Date[Date])
return
calculate(count([Project Id]), filter('Table', 'Table'[Cycle Finish] <=_max1 && 'Table'[Cycle Finish] >=_min1 ))

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
Anonymous
Not applicable

@amitchandak , I have figured out how to do this.

To explain a little more about the task, I have different reports on current project cycle, next project cycle and so on. Thus, I needed to filter out the content by cycle timeframe. 

I used Greg Deckler's reply here https://community.powerbi.com/t5/Desktop/Power-Query-If-x-number-is-between-x-and-y-then-quot-Delete... to index all current and future cycles, so that I got 1 for current, 2 for next etc., and applied page filter based on the cycle number.

 

Thanks

Evan

@Anonymous , Thanks for the update. Kudos to you. We all are learning from Greg's blogs and solutions. 

 

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors