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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
MarcDT21
Frequent Visitor

Filter by date and give back a quantity

Hey there. I am new to Power BI so this might be a silly question. 

I have two tables (with the calendar table, 3). In the first one "KurseWeiterbildung" I have all visited course dates from our employees with the course details. In the second one "I have two date columns kind of "last qualification" - "next qualification". And now I would like to get to know how many visited courses are lie between this timespan.   

 

Thank you verry much for helping me! 

 

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @MarcDT21 ,

 

Please check the measure.

Measure = CALCULATE(COUNT('Table'[id]),FILTER('Table','Table'[date]>=SELECTEDVALUE('Table (2)'[start date])&&'Table'[date]<=SELECTEDVALUE('Table (2)'[end date])))

1.PNG

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @MarcDT21 ,

 

Please check the measure.

Measure = CALCULATE(COUNT('Table'[id]),FILTER('Table','Table'[date]>=SELECTEDVALUE('Table (2)'[start date])&&'Table'[date]<=SELECTEDVALUE('Table (2)'[end date])))

1.PNG

 

Best Regards,

Jay

late, but thank you very much - it works just fine!

amitchandak
Super User
Super User

@MarcDT21 , You need a common person ID dimension, Create one  and try a measure formula like

 

new table -Person

Existing table -KurseWeiterbildung, mitareiter. I used easy different column name for dates


countx(filter(values(Person[personNumber]), max(KurseWeiterbildung[DatumKurs]) >= min(mitareiter[StartDate]) && max(KurseWeiterbildung[DatumKurs]) <= min(mitareiter[EndDate])),KurseWeiterbildung[IDMAUrs])

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors