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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Need help determining projected date of project with Start Date and number of business days

Hello,

 

I am working on a report to project target dates for a project taking into account Days of Development Work, PTO requests, and Days of QA Testing. I have the code to exclude weekends, but I keep getting an error "The result of a conversion or arithmetic operation is either too large or too small".

 

 

Projected Release Priority = 
    VAR CurrentDate = 'Calendar'[Date]

    VAR NextWorkingDates = 
        FILTER(
            ALL('Calendar'),
            'Calendar'[Date] > CurrentDate && 'Calendar'[WeekdayWeekend] = "Weekday" )
    VAR CountofReleasePriorityDays = 'PTO Cushion'[PTO Cushion Value] + 'Days of QA Testing'[Days of QA Testing Value] + 'Product Release Priority Projects'[Days of Dev Work (Release Priority)]
    VAR NextWorkingDays = 
        TOPN(CountofReleasePriorityDays, NextWorkingDates, 'Calendar'[Date], ASC)
    
    VAR Result = MAXX( NextWorkingDays, 'Calendar'[Date])

    RETURN Result

 

 

 

The code works when I replace the "CountofReleasePriorityDays" variable in the "NextWorkingDays" variable with a whole number.

 

 

Projected Release Priority = 
    VAR CurrentDate = 'Calendar'[Date]

    VAR NextWorkingDates = 
        FILTER(
            ALL('Calendar'),
            'Calendar'[Date] > CurrentDate && 'Calendar'[WeekdayWeekend] = "Weekday" )
    VAR CountofReleasePriorityDays = 'PTO Cushion'[PTO Cushion Value] + 'Days of QA Testing'[Days of QA Testing Value] + 'Product Release Priority Projects'[Days of Dev Work (Release Priority)]
    VAR NextWorkingDays = 
        TOPN(64, NextWorkingDates, 'Calendar'[Date], ASC)
    
    VAR Result = MAXX( NextWorkingDays, 'Calendar'[Date])

    RETURN Result

 

 

 

This tells me the problem is my variable "CountofReleasePriorityDays". How do I resolve this issue?

2 REPLIES 2
v-xiaosun-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please check whether there is a error of the format of the columns you used in your formula.

 VAR CountofReleasePriorityDays = 'PTO Cushion'[PTO Cushion Value] + 'Days of QA Testing'[Days of QA Testing Value] + 'Product Release Priority Projects'[Days of Dev Work (Release Priority)]

 

Best Regards,
Community Support Team _ xiaosun

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

Anonymous
Not applicable

Hello,

 

Yes, I have checked the format and they are all formatted as whole numbers.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.