Estoy migrando un Reporte de Spotfire a un Reporte de PowerBI. Para una de las columnas, tengo una consulta case when de Spotfire que quiero convertir a una expresión switch case en DAX. Comencé y creo que estoy bien con la parte inicial de la consulta, pero no estoy seguro de cómo construir el resto de la consulta. Aquí están los detalles:<\/P>
Consulta case when de Spotfire:<\/P>
CASE WHEN (<\/STRONG><\/P> [RefPointGroupCap] no es nulo) OR (<\/STRONG><\/P> [MortgageGroupCap] no es nulo) OR (<\/STRONG><\/P> [MPBGroupCap] no es nulo) OR (<\/STRONG><\/P> [NCBGroupCap] no es nulo) OR (<\/STRONG><\/P> [SRCGroupCap] no es nulo) ENTONCES<\/STRONG><\/P> <\/SPAN>"Y"<\/STRONG><\/P> <\/SPAN>& (if([RefPointGroupCap] es nulo,""," \/ " & [RefPointGroupCap]))<\/STRONG><\/P> <\/SPAN>& (If([MortgageGroupCap] es nulo,""," \/ " & [MortgageGroupCap]))<\/STRONG><\/P> <\/SPAN>& (If([MPBGroupCap] es nulo,""," \/ " & [MPBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (If([NCBGroupCap] es nulo,""," \/ " & [NCBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (If([SRCGroupCap] es nulo,""," \/ " & [SRCGroupCap]))<\/STRONG><\/P>WHEN (<\/STRONG><\/P> [RefPointGroupCap] es nulo) y (<\/STRONG><\/P> [MortgageGroupCap] es nulo) y (<\/STRONG><\/P> [MPBGroupCap] es nulo) y (<\/STRONG><\/P> [NCBGroupCap] es nulo) y (<\/STRONG><\/P> [SRCGroupCap] es nulo) ENTONCES "N"<\/STRONG><\/P>END<\/STRONG><\/P>La consulta switch case que construí a medio camino:<\/P>Columna=<\/STRONG><\/P>SWITCH (<\/STRONG><\/P>TRUE (),<\/STRONG><\/P>NO(ESBLANCO('F22_New_Cumulative_export (2)'[RefPointGroupCap])) ||<\/STRONG><\/P>NO(ESBLANCO('F22_New_Cumulative_export (2)'[MortgageGroupCap])) ||<\/STRONG><\/P>NO(ESBLANCO('F22_New_Cumulative_export (2)'[MPBGroupCap])) ||<\/STRONG><\/P>NO(ESBLANCO('F22_New_Cumulative_export (2)'[NCBGroupCap])) ||<\/STRONG><\/P>NO(ESBLANCO('F22_New_Cumulative_export (2)'[SRCGroupCap])) ,<\/STRONG><\/P>"Y" &&<\/STRONG><\/p>
(SI(ESBLANCO('F22_New_Cumulative_export (2)'[RefPointGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[RefPointGroupCap]) &&
(SI(ESBLANCO('F22_New_Cumulative_export (2)'[MortgageGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[MortgageGroupCap]) &&
(SI(ESBLANCO('F22_New_Cumulative_export (2)'[MPBGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[MPBGroupCap]) &&
(SI(ESBLANCO('F22_New_Cumulative_export (2)'[NCBGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[NCBGroupCap]) &&
(SI(ESBLANCO('F22_New_Cumulative_export (2)'[SRCGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[SRCGroupCap]),
ESBLANCO('F22_New_Cumulative_export (2)'[RefPointGroupCap]) ||
ESBLANCO('F22_New_Cumulative_export (2)'[MortgageGroupCap]) ||
ESBLANCO('F22_New_Cumulative_export (2)'[MPBGroupCap]) ||
ESBLANCO('F22_New_Cumulative_export (2)'[NCBGroupCap]) ||
ESBLANCO('F22_New_Cumulative_export (2)'[SRCGroupCap]),
"N"
))))))
¡Házmelo saber si necesitas más información, gracias por la ayuda!<\/p>