Planificado LH =
VAR vFiltro = SELECTEDVALUE(Filtro[Filtro])
RETURN IF(vFiltro = "Horas", IF(NOT(ISBLANK(ALLPROJECTS[Proyecto (relacion)]), CALCULATE(SUM('Project LA'[Hours SGTO])), IF(ISBLANK(SELECTEDVALUE('Project LA'[Project])), BLANK(), IF(CALCULATE(SUM('Project LA'[Cost Project Plan]))<1 , "0 €" , FORMAT(CALCULATE(SUM('Project LA'[Cost Project Plan])) ,"#,###.#0 €"))))
IF(vFiltro = "Horas", CALCULATE(SUM(Worklines[Hours SGTO])), IF(ISBLANK(SELECTEDVALUE(Worklines[Project])), BLANK(), IF(CALCULATE(SUM(Worklines[Cost Project Plan]))<1 , "0 €" , FORMAT(CALCULATE(SUM(Worklines[Cost Project Plan])) ,"#,### €"))))