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.
Tengo una columna con valores de Non-Covid y Covid. Si el valor es Covid, el año fiscal debe formatearse y rellenarse en función de la columna Inicio programado. Si el valor es No-Covid, el año fiscal debe formatearse y rellenarse en función de la columna Fecha notificada. Mi fórmula es
Solved! Go to Solution.
Si se trata de una columna calculada en una tabla, intente:
Fiscal Month/Yr = IF(
'2700 WO Listing'[Covid vs Non-Covid (groups)]="Non-Covid",
FORMAT('2700 WO Listing'[Reported Date],"MMM-yyyy"),
FORMAT('2700 WO Listing'[Scheduled Start],"MMM-yyyy")
)
Si está utilizando esto en una medida, intente:
Fiscal Month/Yr = IF(
MAX( '2700 WO Listing'[Covid vs Non-Covid (groups)]) = "Non-Covid",
FORMAT('2700 WO Listing'[Reported Date],"MMM-yyyy"),
FORMAT('2700 WO Listing'[Scheduled Start],"MMM-yyyy")
)
@ahhollan esta sintaxis debe funcionar para la columna calculada:
pero no funcionaría para una medida.
perdió algunos paréntesis, fórmulas y comillas. Prueba esto:
Fiscal Month/Yr =
IF (
'2700 WO Listing'[Covid vs Non-Covid (groups)] = "Non-Covid",
FORMAT ( '2700 WO Listing'[Reported Date], "MMM-yyyy" ),
FORMAT ( '2700 WO Listing'[Scheduled Start], "MMM-yyyy" )
)
Orgulloso de ser un SuperUsuario. Si ayudé, por favor acepte la solución y dar felicitaciones! |
Si se trata de una columna calculada en una tabla, intente:
Fiscal Month/Yr = IF(
'2700 WO Listing'[Covid vs Non-Covid (groups)]="Non-Covid",
FORMAT('2700 WO Listing'[Reported Date],"MMM-yyyy"),
FORMAT('2700 WO Listing'[Scheduled Start],"MMM-yyyy")
)
Si está utilizando esto en una medida, intente:
Fiscal Month/Yr = IF(
MAX( '2700 WO Listing'[Covid vs Non-Covid (groups)]) = "Non-Covid",
FORMAT('2700 WO Listing'[Reported Date],"MMM-yyyy"),
FORMAT('2700 WO Listing'[Scheduled Start],"MMM-yyyy")
)
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 |