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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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