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
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
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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.