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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
danielwelch
Resolver II
Resolver II

Unique days between multiple ranges of dates deducted from one range of dates

Im currently working on a report which looks at various time periods (KPIS) between a customer journey and checks whether they were in timescale or not.

What makes this complicated is that a customer may have any number of on hold reason date periods which need to be deducted from the KPI periods.  These may overlap each other.

I have two tables which im trying to compare:

The first is the on hold table which lists each on hold per customer id by start date:

Customer IDOn Hold reasonHold Start DateHold End DateOn Hold IndexTotal Working Days on hold
1234Reason101/01/202110/01/202116
1234Reason203/01/202107/01/202124
1234Reason304/01/202114/01/202139
1234Reason412/01/202112/01/202141
1234Reason515/01/202117/01/202151
1234Reason625/01/202126/01/202162
1234Reason726/01/202128/01/202173
1234Reason827/01/202128/01/202182


The second table is the customer KPI table which lists the KPI periods which I want to know the working days for:

Customer IDPeriod 1 Start DatePeriod 1 End DatePeriod 1 working daysDays After hold reductionPeriod 2 Start DatePeriod 2 End DatePeriod 2 working daysDays After hold reduction
123401/01/202110/01/20216015/01/202125/01/202175


I want to compare all of the on hold days against each other to see if they were in the same hold period and then whether they were in the KPI period in the customer table and then get the on hold days to deduct from the working days.  I do not want to double count any hold day instance.

Happy to clarify any points.

Thanks in advance.

1 ACCEPTED SOLUTION
danielwelch
Resolver II
Resolver II

I have managed to solve this myself.  If anyone is interested in the soloution let me know.

View solution in original post

1 REPLY 1
danielwelch
Resolver II
Resolver II

I have managed to solve this myself.  If anyone is interested in the soloution let me know.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors