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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Completed Per Week

Hi, I am currently trying to work out how to calculate number of completed jobs per week, I have the following formula

 

No. Jobs Completed =
CALCULATE(
    COUNTROWS('Job Tracker'),
    FILTER(
        'Job Tracker',
        'Job Tracker'[Days on Site]="Completed"
    )
)+0
 
so for an example from 4th to 10th May there are 2 completed jobs on the 8th May the answer wold be 2 if I clicked on the 10th May date tile slicer (calculated column: 
Week Ending = 'Job Tracker'[Created]- MOD('Job Tracker'[Created]-1,7)+5)
 
any assistance would be appreciated
4 REPLIES 4
Anonymous
Not applicable

all the data is from a sharepoint list, we could either use measures days on Site = completed or completed date cannot be blank etc, theres a field JOb No which is the job ID that needs to be counted

SmartZ96_0-1715760074546.png

sharepoint currently filtered to days on site completed

SmartZ96_1-1715760205525.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

As @ExcelMonke @Wilson_  said, create a date table is the best option.


Apply the weekend formula you created to the date table. Refer to the demo below:

vkongfanfmsft_0-1715743051546.png

weekend = 'Date'[Date]- MOD('Date'[Date]-1,7)+5
No. Jobs Completed = 
CALCULATE (
    COUNTROWS ( 'Job Tracker' ),
    FILTER ( 'Job Tracker', 'Job Tracker'[Days on Site] = "Completed" )
) + 0

vkongfanfmsft_1-1715743078091.pngvkongfanfmsft_2-1715743085218.png

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ExcelMonke
Super User
Super User

Agreed with @Wilson_  here. Look into creating a date table, and have a week beginning (or week ending) column, which returns the first/last date of each week. Then, what you can do is use the follwing measure:

CALCULATE(
COUNTROWS('Job Tracker'),
ALLEXCEPT(DateTable,DateTable[WeekBeginning])
)




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

Proud to be a Super User!





Wilson_
Super User
Super User

Hi SmartZ96,

 

Do you have a date dimension table in your data model, with week related columns in it? If not, I would look into that. It would make this infinitely easier.

 

This is the most comprehensive date dimension table I've come across so far.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




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

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.