Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
Solved! Go to Solution.
Hi @Anonymous
please try
Dias =
SUMX (
'Table',
COUNTROWS (
INTERSECT (
VALUES ( 'Date'[Date] ),
CALENDAR ( 'Table'[Fecha inicio], 'Table'[Fecha Fin] )
)
)
)
Hi @Anonymous
please try
Dias =
SUMX (
'Table',
COUNTROWS (
INTERSECT (
VALUES ( 'Date'[Date] ),
CALENDAR ( 'Table'[Fecha inicio], 'Table'[Fecha Fin] )
)
)
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |