Ik migreer een Spotfire Rapport naar een PowerBI Rapport. Voor een van de kolommen heb ik een Spotfire case when query die ik wil omzetten naar een switch case DAX Expressie. Ik ben begonnen en ik denk dat ik goed zit met het eerste deel van de query, maar ik weet niet zeker hoe ik de rest van de query moet opbouwen. Hier zijn de details:<\/P>
Spotfire case when query:<\/P>
CASE WHEN (<\/STRONG><\/P> [RefPointGroupCap] is not null) OF (<\/STRONG><\/P> [MortgageGroupCap] is not null) OF (<\/STRONG><\/P> [MPBGroupCap] is not null) OF (<\/STRONG><\/P> [NCBGroupCap] is not null) OF (<\/STRONG><\/P> [SRCGroupCap] is not null) DAN<\/STRONG><\/P> <\/SPAN>"Y"<\/STRONG><\/P> <\/SPAN>& (als([RefPointGroupCap] is null,""," \/ " & [RefPointGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Als([MortgageGroupCap] is null,""," \/ " & [MortgageGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Als([MPBGroupCap] is null,""," \/ " & [MPBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Als([NCBGroupCap] is null,""," \/ " & [NCBGroupCap]))<\/STRONG><\/P> <\/SPAN>& (Als([SRCGroupCap] is null,""," \/ " & [SRCGroupCap]))<\/STRONG><\/P>WHEN (<\/STRONG><\/P> [RefPointGroupCap] is null) en (<\/STRONG><\/P> [MortgageGroupCap] is null) en (<\/STRONG><\/P> [MPBGroupCap] is null) en (<\/STRONG><\/P> [NCBGroupCap] is null) en (<\/STRONG><\/P> [SRCGroupCap] is null) DAN "N"<\/STRONG><\/P>EINDE<\/STRONG><\/P>De switch case query die ik half heb opgebouwd:<\/P>Kolom=<\/STRONG><\/P>SWITCH (<\/STRONG><\/P>WAAR (),<\/STRONG><\/P>NIET(ISLEEG('F22_New_Cumulative_export (2)'[RefPointGroupCap])) ||<\/STRONG><\/P>NIET(ISLEEG('F22_New_Cumulative_export (2)'[MortgageGroupCap])) ||<\/STRONG><\/P>NIET(ISLEEG('F22_New_Cumulative_export (2)'[MPBGroupCap])) ||<\/STRONG><\/P>NIET(ISLEEG('F22_New_Cumulative_export (2)'[NCBGroupCap])) ||<\/STRONG><\/P>NIET(ISLEEG('F22_New_Cumulative_export (2)'[SRCGroupCap])) ,<\/STRONG><\/P>"Y" &&<\/STRONG><\/P>(ALS(ISLEEG('F22_New_Cumulative_export (2)'[RefPointGroupCap]), LEEG(), " \/ " & 'F22_New_Cumulative_export (2)'[RefPointGroupCap]) &&<\/STRONG><\/P>(ALS(ISLEEG('F22_New_Cumulative_export (2)'[MortgageGroupCap]), LEEG(), " \/ " & 'F22_New_Cumulative_export (2)'[MortgageGroupCap]) &&<\/STRONG><\/P>(ALS(ISLEEG('F22_New_Cumulative_export (2)'[MPBGroupCap]), LEEG(), " \/ " & 'F22_New_Cumulative_export (2)'[MPBGroupCap]) &&<\/STRONG><\/P>(ALS(ISLEEG('F22_New_Cumulative_export (2)'[NCBGroupCap]), LEEG(), " \/ " & 'F22_New_Cumulative_export (2)'[NCBGroupCap]) &&<\/STRONG>
(ALS(ISLEEG('F22_New_Cumulative_export (2)'[SRCGroupCap]), LEEG(), \" \/ \" & 'F22_New_Cumulative_export (2)'[SRCGroupCap]),
ISLEEG('F22_New_Cumulative_export (2)'[RefPointGroupCap]) ||
ISLEEG('F22_New_Cumulative_export (2)'[MortgageGroupCap]) ||
ISLEEG('F22_New_Cumulative_export (2)'[MPBGroupCap]) ||
ISLEEG('F22_New_Cumulative_export (2)'[NCBGroupCap]) ||
ISLEEG('F22_New_Cumulative_export (2)'[SRCGroupCap]),
"N"
))))))
Laat me weten als je meer informatie nodig hebt, bedankt voor de hulp!