Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Tabla de proyectos
Proyecto | Fecha de inicio | Fecha final | |
Proyecto A | 1 de junio | 5 de junio | |
Proyecto B | 1april | 10 de abril |
(Mesa virtual)
Proyecto | Fecha de inicio | Fecha final | Total de días |
Proyecto A | 1 de junio | 5 de junio | 5 |
Proyecto B | 1april | 10 de abril | 10 |
Así que necesito crear una tabla virtual donde agrego una columna con el total de días para cada proyecto, algo así como esto:
var virtual table: ADDCOLUMNS(Project Table, "@Total Days", Countrows(datesbetween(Dates, Selectedvalue(Beginning Date),Selectedvalue( End date),)
Luego quiero sumar la nueva columna virtual, que en este caso particular sería 5+10 = 15,
Intenté con una variable "current_project" para hacer que las fechas entre funcionen y obtener el total de días para cada proyecto fila por fila. Pero la medida no funciona en los totales, y en los gráficos solo funciona si coloco "Proyecto" como leyenda.... Si no filtro por proyecto, no funciona.
¿Alguna ayuda?
Muchas gracias
Solved! Go to Solution.
Estabas cerca. Esta es su medida
Total Days = int(SUMX(ADDCOLUMNS('Project Table',"Days",'Project Table'[End Date]-'Project Table'[Beginning Date]+1),[Days]))
Estabas cerca. Esta es su medida
Total Days = int(SUMX(ADDCOLUMNS('Project Table',"Days",'Project Table'[End Date]-'Project Table'[Beginning Date]+1),[Days]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |