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

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

Reply
mikah
Frequent Visitor

How to calculate number of values between two column dates

Hi everyone,

I have here a table with the job added and the job expiry date (note: job added and job expiry date is in a different column in the same table)

mikah_0-1682369325732.png

What I wanted to happen is that I wanted to count the number of job id before the job expiration date regardless of the status, when I use the filter date

mikah_1-1682369951810.png

 

Thanks in advance, if someone is in help.

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

If you want to count all jobs before the expiration date, then why are you selecting 2 dates in the slicer? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-jingzhang
Community Support
Community Support

Hi @mikah 

 

Your Date slicer is based on Job Added Date or Job Expiration Date? As you want to count the number of jobs before the Job Expiration date, if the date slicer is picking the job expiration date column, do you want to count the number of jobs whose job expiration date is before the maximum date (1/3/2023) or the mininum date (1/10/2022) from the slicer? 

 

I guess probably this is what you want?

Number of Jobs = COUNTROWS(FILTER('Table','Table'[Job Added Date]<=MIN('Date'[Date]) && 'Table'[Job Expire Date]>=MAX('Date'[Date])))

vjingzhang_1-1682477970196.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

 

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!

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.

Top Solution Authors