Estou migrando um Relatório do Spotfire para um Relatório do PowerBI. Para uma das colunas, tenho uma consulta case when do Spotfire que quero converter para uma expressão switch case em DAX. Comecei e acho que estou bem com a parte inicial da consulta, mas não tenho certeza de como construir o restante da consulta. Aqui estão os detalhes:<\/P>
Consulta case when do Spotfire:<\/P>
CASE WHEN (<\/STRONG><\/P> [RefPointGroupCap] não é nulo) OU (<\/STRONG><\/P> [MortgageGroupCap] não é nulo) OU (<\/STRONG><\/P> [MPBGroupCap] não é nulo) OU (<\/STRONG><\/P> [NCBGroupCap] não é nulo) OU (<\/STRONG><\/P> [SRCGroupCap] não é nulo) ENTÃO<\/STRONG><\/P> <\/SPAN>"Y"<\/STRONG><\/P> <\/SPAN>& (se([RefPointGroupCap] é nulo,""," \/ " & [RefPointGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Se([MortgageGroupCap] é nulo,""," \/ " & [MortgageGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Se([MPBGroupCap] é nulo,""," \/ " & [MPBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Se([NCBGroupCap] é nulo,""," \/ " & [NCBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Se([SRCGroupCap] é nulo,""," \/ " & [SRCGroupCap]))<\/STRONG><\/P>WHEN (<\/STRONG><\/P> [RefPointGroupCap] é nulo) e (<\/STRONG><\/P> [MortgageGroupCap] é nulo) e (<\/STRONG><\/P> [MPBGroupCap] é nulo) e (<\/STRONG><\/P> [NCBGroupCap] é nulo) e (<\/STRONG><\/P> [SRCGroupCap] é nulo) ENTÃO "N"<\/STRONG><\/P>END<\/STRONG><\/P>A consulta switch case que construí até a metade:<\/P>Coluna=<\/STRONG><\/P>SWITCH (<\/STRONG><\/P>TRUE (),<\/STRONG><\/P>NOT(ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap])) ||<\/STRONG><\/P>NOT(ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap])) ||<\/STRONG><\/P>NOT(ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap])) ||<\/STRONG><\/P>NOT(ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap])) ||<\/STRONG><\/P>NOT(ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap])) ,<\/STRONG><\/P>"Y" &&<\/STRONG><\/P>(SE(ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[RefPointGroupCap]) &&<\/STRONG><\/P>(SE(ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[MortgageGroupCap]) &&
(SE(ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[MPBGroupCap]) &&
(SE(ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[NCBGroupCap]) &&
(SE(ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap]), BLANK(), " \/ " & 'F22_New_Cumulative_export (2)'[SRCGroupCap]),
ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap]) ||
ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap]) ||
ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap]) ||
ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap]) ||
ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap]),
"N"
))))))
Me avise se precisar de mais informações, obrigado pela ajuda!<\ /p>