Ich migriere einen Spotfire-Bericht zu einem PowerBI-Bericht. Für eine der Spalten habe ich eine Spotfire case when-Abfrage, die ich in einen switch case DAX-Ausdruck umwandeln möchte. Ich habe angefangen und denke, dass ich mit dem Anfang der Abfrage gut bin, bin mir aber nicht sicher, wie ich den Rest der Abfrage aufbauen soll. Hier sind die Details:<\/P>
Spotfire case when-Abfrage:<\/P>
CASE WHEN (<\/STRONG><\/P> [RefPointGroupCap] ist nicht null) ODER (<\/STRONG><\/P> [MortgageGroupCap] ist nicht null) ODER (<\/STRONG><\/P> [MPBGroupCap] ist nicht null) ODER (<\/STRONG><\/P> [NCBGroupCap] ist nicht null) ODER (<\/STRONG><\/P> [SRCGroupCap] ist nicht null) DANN<\/STRONG><\/P> <\/SPAN>"Y"<\/STRONG><\/P> <\/SPAN>& (wenn([RefPointGroupCap] ist null,""," \/ " & [RefPointGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Wenn([MortgageGroupCap] ist null,""," \/ " & [MortgageGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Wenn([MPBGroupCap] ist null,""," \/ " & [MPBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Wenn([NCBGroupCap] ist null,""," \/ " & [NCBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Wenn([SRCGroupCap] ist null,""," \/ " & [SRCGroupCap]))<\/STRONG><\/P>WHEN (<\/STRONG><\/P> [RefPointGroupCap] ist null) und (<\/STRONG><\/P> [MortgageGroupCap] ist null) und (<\/STRONG><\/P> [MPBGroupCap] ist null) und (<\/STRONG><\/P> [NCBGroupCap] ist null) und (<\/STRONG><\/P> [SRCGroupCap] ist null) DANN "N"<\/STRONG><\/P>END<\/STRONG><\/P>Die halb fertiggestellte switch case-Abfrage:<\/P>Spalte=<\/STRONG><\/P>SWITCH (<\/STRONG><\/P>TRUE (),<\/STRONG><\/P>NICHT(ISTLEER('F22_New_Cumulative_export (2)'[RefPointGroupCap])) ||<\/STRONG><\/P>NICHT(ISTLEER('F22_New_Cumulative_export (2)'[MortgageGroupCap])) ||<\/STRONG><\/P>NICHT(ISTLEER('F22_New_Cumulative_export (2)'[MPBGroupCap])) ||<\/STRONG><\/P>NICHT(ISTLEER('F22_New_Cumulative_export (2)'[NCBGroupCap])) ||<\/STRONG><\/P>NICHT(ISTLEER('F22_New_Cumulative_export (2)'[SRCGroupCap])) ,<\/STRONG><\/P>"Y" &&<\/STRONG><\/P>(WENN(ISTLEER('F22_New_Cumulative_export (2)'[RefPointGroupCap]), LEER(), " \/ " & 'F22_New_Cumulative_export (2)'[RefPointGroupCap]) &&<\/STRONG><\/P>(WENN(ISTLEER('F22_New_Cumulative_export (2)'[MortgageGroupCap]), LEER(), " \/ " & 'F22_New_Cumulative_export (2)'[MortgageGroupCap]) &&<\/STRONG><\/P>(WENN(ISTLEER('F22_New_Cumulative_export (2)'[MPBGroupCap]), LEER(), " \/ " & 'F22_New_Cumulative_export (2)'[MPBGroupCap]) &&<\/STRONG><\/P>(WENN(ISTLEER('F22_New_Cumulative_export (2)'[NCBGroupCap]), LEER(), " \/ " & 'F22_New_Cumulative_export (2)'[NCBGroupCap]) &&<\/STRONG><\/P>