Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hola a todos,
Estoy necesitando crear una medida que cuente la cantidad de proyectos vigentes por mes teniendo en cuenta la fecha de inicio y de finalización de cada proyecto.
En la siguiente tabla se ve claramente: esta el ID del proyecto y las columnas de fecha inicio y fecha fin de cada proyecto.
He probado muchísimas metricas pero no logro que ninguna cuente la cantidad de proyectos vigentes mes a mes. Haciendo el cálculo manualmente en enero 2022 hubo 6 proyectos en ese mes, febrero, marzo y abril se mantienen igual, en mayo hubo 9 proyectos vigentes y así sucesivamente teniendo en cuenta la fecha en la que inició y finalizó cada proyecto el resultado final sería:
Haciendo un gráfico de linea tendriamos una linea continua que sube o baja segun la cantidad de proyectos.
Las fórmulas que probé no me dejan hacer "crossfilter" y comento que no tengo "isblank" porque he probado con fórmulas que contienen estas expresiones y no lo he logrado.
Dejo la spreadsheet para simplificar la tarea a quien pueda ayudarme, https://docs.google.com/spreadsheets/d/1-CFdDAawLf7AQj-BNJLtI2g7NTR5BuVgp3b_-EA0WB8/edit
Gracias inmensas!
Solved! Go to Solution.
Hi, @paula_jimena
You can try the following methods.
Create a new date table:
Table:
Date = CALENDAR(MIN('Table'[Start Date]),MAX('Table'[End Date]))
Column:
Month = MONTH([Date])
Measure:
Measure =
CALCULATE ( COUNT ( 'Table'[Project ID] ),
FILTER ( ALL ( 'Table' ),
[Start Date].[MonthNo] <= SELECTEDVALUE ( 'Date'[Month] )
&& [End Date].[MonthNo] >= SELECTEDVALUE ( 'Date'[Month] )
)
)
Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Es perfecto, ¡muchas gracias! 😎
Hi, @paula_jimena
You can try the following methods.
Create a new date table:
Table:
Date = CALENDAR(MIN('Table'[Start Date]),MAX('Table'[End Date]))
Column:
Month = MONTH([Date])
Measure:
Measure =
CALCULATE ( COUNT ( 'Table'[Project ID] ),
FILTER ( ALL ( 'Table' ),
[Start Date].[MonthNo] <= SELECTEDVALUE ( 'Date'[Month] )
&& [End Date].[MonthNo] >= SELECTEDVALUE ( 'Date'[Month] )
)
)
Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
92 | |
87 | |
77 | |
73 | |
68 |
User | Count |
---|---|
116 | |
107 | |
88 | |
65 | |
63 |