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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Días por periodo entre dos Fechas de distinto mes (ejemplo vacaciones)

Hola 

Necesito calcular días tomados por periodo, por ejemplo, para vacaciones, en la que las fechas de inicio y fin son de distinto mes.

Tengo una base de empleados de una empresa en la que la información del sistema se presenta así:

 

Fecha inicio       Fecha Fin     días de vacaciones

25-10-2022       10-11-2022        15 días

 

En la que el resultado esperado para mostrar en gráficas es:

Periodo           días

202210           5

202211          10

 

Ojala puedan ayudarme

 

Saludos

Gonzalo

1 ACCEPTED SOLUTION
tamerj1
Community Champion
Community Champion

Hi @Anonymous 

please try

Dias =
SUMX (
    'Table',
    COUNTROWS (
        INTERSECT (
            VALUES ( 'Date'[Date] ),
            CALENDAR ( 'Table'[Fecha inicio], 'Table'[Fecha Fin] )
        )
    )
)

View solution in original post

1 REPLY 1
tamerj1
Community Champion
Community Champion

Hi @Anonymous 

please try

Dias =
SUMX (
    'Table',
    COUNTROWS (
        INTERSECT (
            VALUES ( 'Date'[Date] ),
            CALENDAR ( 'Table'[Fecha inicio], 'Table'[Fecha Fin] )
        )
    )
)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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