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.
Hola
Tengo un modelo de datos con la parte relavant que se ve así:
Dim Monthend Date[Date] está conectado a Attrition_FTE_HC_ExitList[FTE Report Date].
Me gustaría crear una medida que calcule la SUMA(Attrition_FTE_HC_ExitList[FTE_FTE_HC]) para la fecha 2021.12.31, y usar esta medida para dividir mi número de egresados a lo largo del año 2022. Mi problema es que incluso con el uso de CROSSFILTER establecido en la opción Ninguno Crossfiltering entre Dim Monthend Date[Date] y Attrition_FTE_HC_ExitList[FTE Report Date], esta medida solo se aplica a FTE Report Date 2021.12.31 y no puedo usarla para 2022.
Las medidas son:
YE FTE 2021 = CALCULATE(SUMA(Attrition_FTE_HC_ExitList[FTE_FTE_HC]), FILTER(Attrition_FTE_HC_ExitList,Attrition_FTE_HC_ExitList[Fecha de informe FTE]=FECHA(2021,12,31)),CROSSFILTER('Fecha de fin de mes dim'[Fecha],Attrition_FTE_HC_ExitList[Fecha de informe FTE],Ninguna))
Deserción voluntaria acumulada mundial por período = DIVIDE([Abandono voluntario acumulativo de 2022],[YE FTE 2021])
Como puede ver, el YE FTE 2021 solo se calcula para 2021-12 (la fecha de fin de mes [Fecha] dim está en el eje x), por lo tanto, el desgaste voluntario global también se calcula solo para esta fecha y no para 2022.
¿Qué estoy haciendo mal, cómo puedo desactivar esta relación?
¡Gracias!
Solved! Go to Solution.
La solución fue una función CALCULATE anidada:
YE FTE 2021 =
CALCULATE(
CALCULATE(SUM(Attrition_FTE_HC_ExitList[FTE_FTE_HC]),
FILTER(Attrition_FTE_HC_ExitList,Attrition_FTE_HC_ExitList[FTE Report Date]=DATE(2021,12,31))),
CROSSFILTER('Dim Monthend Date'[Date],Attrition_FTE_HC_ExitList[FTE Report Date],None))
La solución fue una función CALCULATE anidada:
YE FTE 2021 =
CALCULATE(
CALCULATE(SUM(Attrition_FTE_HC_ExitList[FTE_FTE_HC]),
FILTER(Attrition_FTE_HC_ExitList,Attrition_FTE_HC_ExitList[FTE Report Date]=DATE(2021,12,31))),
CROSSFILTER('Dim Monthend Date'[Date],Attrition_FTE_HC_ExitList[FTE Report Date],None))
¡Estoy buscando una solución para lo anterior! Gracias
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |