cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Necesita ayuda para determinar la fecha proyectada del proyecto con fecha de inicio y número de días hábiles

Hola

Estoy trabajando en un informe para proyectar las fechas objetivo para un proyecto teniendo en cuenta los días de trabajo de desarrollo, las solicitudes de PTO y los días de pruebas de control de calidad. Tengo el código para excluir los fines de semana, pero sigo recibiendo un error "El resultado de una conversión u operación aritmética es demasiado grande o demasiado pequeño".

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( Next10WorkingDays, 'Calendar'[Date])

    RETURN Result

El código funciona cuando reemplazo la variable "CountofReleasePriorityDays" en la variable "NextWorkingDays" con un número entero.

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( Next10WorkingDays, 'Calendar'[Date])

    RETURN Result

Esto me dice que el problema es mi variable "CountofReleasePriorityDays". ¿Cómo resuelvo este problema?

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@alexngo1994 ,

Compruebe si hay un error en el formato de las columnas que utilizó en su fórmula.

 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)]

Saludos
Equipo de Apoyo a la Comunidad _ xiaosun

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Hola

Sí, he comprobado el formato y he hecho coincidir los dos tipos de datos, pero eso no resolvió el problema.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors