L’instruction CASE n’existe pas et lorsque l’on souhaite tester les valeurs d’un champ dans un LOAD, il faut encapsuler des fonctions If() ce qui complexifie la lecture du code :
Employés:
LOAD If(Office=1,’Bureau 1′, If(Office=2,’Bureau 2′, If(Office=3, ‘Bureau 3’, If(Office=4, ‘Bureau 4’, ‘Bureau 5’)))),
…
Il est possible d’utiliser une table de mappage pour simplifier l’écriture :
Map_Office:
MAPPING LOAD * INLINE [
Code, Libellé
1, Bureau 1
2, Bureau 2
3, Bureau 3
4, Bureau 4
5, Bureau 5
];
Employés:
LOAD ApplyMap(‘Map_Office‘,Office) AS Office,
…



![[PowerBI][DAX] – Comment gérer les espaces et les champs vides ?](https://i1.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-isblank.png?resize=100%2C70&ssl=1)
![[PowerQuery]-Comment générer une table temps ? Générer une table temps](https://i1.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/PowerQuery_Generation_table_temps.png?resize=218%2C150&ssl=1)
![[PowerBi] – Les raccourcis clavier pratiques](https://i1.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-raccourcis-clavier.png?resize=218%2C150&ssl=1)
![[PowerBI] – Comment ajouter une description aux graphiques ? Description des graphiques](https://i2.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/PowerBI-Infobulle-description.png?resize=218%2C150&ssl=1)


![[PowerBI][DAX] – Comment compter le nombre de ligne d’une table ?](https://i2.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-countrows-logo-1.png?resize=100%2C70&ssl=1)