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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
AmberGardner
Frequent Visitor

DateDiff with Working Days and Sums

I am currently transforming old reports to new PowerBI ones and am stuck on this particular part. I need to do a date difference beween DepositDate and CmplDate, this needs to be for working days only and needs to return with a number of the differences. Then i also need to have a conditional title for these where if there are more than 10 working days text will return to say "More than 10 working days", and same again for less than 10. 

I also need to have a sum to show the amount of days (i am assuming based off of the information on the old reports).

Please note that the CmplDate also has quite a lot of blanks and therefore i need to have a filter on the page to show the information when the CmplDate is not blank. I do not know if this will mess with the potential measure or conditional columns (if these are the answer).

AmberGardner_11-1701696369197.png

 

Below is the information from the old reports: 

AmberGardner_7-1701696119540.png

Date difference (working days) (TITLE IS "Deposit-PlanChk")

 

AmberGardner_8-1701696142484.png

Less than 10

AmberGardner_9-1701696185972.png

More than 10

AmberGardner_10-1701696219708.png

Then need to Sum both of these

 

AmberGardner_5-1701695807150.png

And then need to create a rule to title these?

 

AmberGardner_6-1701696059935.png

So that they will appear on the table with this information

3 REPLIES 3
Anonymous
Not applicable

Anonymous
Not applicable

You would want to relate your data table to a Date Dimension. The Date Dimension table will have a row for every date, no gaps. One of the columns in the Date Dimension table would be WorkDay (values Y or No, 0 or 1, etc.) You can then use a CALCULATE function on the measure to FILTER only for WorkDay = 'Y'

I am so sorry i am really new at PowerBI and i dont understand what you mean by a Date Dimension table? Is this something that i will need to do in Power Query? If so, how would i do this?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Kudoed Authors