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

How Many Records that the Date is in This Week

Hi there,

I have a data like the below:

arythedj_4-1629961747852.png

This is what I would like to achieve in Power BI 

arythedj_5-1629961818795.png

Driver Created is simple, it's just a count of driver_id

But I am struggling to figure out on how to create a measure to count the records in column E "First Job Date" that are in between column C "Week Starting Created" and column D "Week Ending Created"

Really appreciate if someone can help me.

Many thanks in advance.

Regards,

Ary

1 ACCEPTED SOLUTION

@Anonymous 

 

change that all('Table') to ALLEXCEPT('Table','Table'[Zone Name],'Table'[Driver Region]) and test those slicers.

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1630023120472.png !!

View solution in original post

6 REPLIES 6
VahidDM
Super User
Super User

Hi @Anonymous 

 

Try this measure and add it to your table:

Started first job = calculate(COUNTROWS('Table'),filter(all('Table'),'Table'[First Job Date]>=max('Table'[Week Starting Created]&&'Table'[First Job Date]<=max('Table'[Week Ending Created]))))

 

Add it to the table

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1629965612889.png !!

 

Anonymous
Not applicable

Thanks @VahidDM 

 

Works like a charm.

I have slicers in this report.

Slicer fields are "Zone Name" and "Driver Region"

These 2 fields sit under the same table.

Is there a way to make the measure to not ignore the slicer selection?

 

Regards,

Ary

@Anonymous 
Yes, change that all('Table') to 'Table' in the measure I shared before and try it.

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1629981732293.png !!

Anonymous
Not applicable

Thanks @VahidDM 

Apparently after removing ALL, the result is now filtered to the row level of the report (Week Starting Created).

See below the red box is without ALL, the first one was reduced from 36 to 21 because the result is now filtered to Week Starting Created of 23rd August.

arythedj_0-1630017704225.png

 

@Anonymous 

 

change that all('Table') to ALLEXCEPT('Table','Table'[Zone Name],'Table'[Driver Region]) and test those slicers.

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1630023120472.png !!

Anonymous
Not applicable

@VahidDM Thank you so much for your help!

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.