Titres dynamiques
TitreParPays =
IF(
ISFILTERED(Customer[Country-Region]),
IF(
HASONEVALUE(Customer[Country-Region]),
VALUES(Customer[Country-Region]),
CONCATENATEX(
Customer,
Customer[Country-Region],
",",
Customer[Country-Region],
ASC
)
),
"Tous les pays"
)Affiche les 5 premiers produits sélectionnés, puis un symbole “+” quand on dépasse 5 :
Exemple
Produits sélectionnés =
IF(
NOT(
ISFILTERED(Vente[Produit])
)
,"All",
"Produits " & CONCATENATEX(
TOPN(5, ALLSELECTED(Vente[Produit])
),
Vente[Produit],
", "
)
& IF(
COUNTROWS(ALLSELECTED(Vente[Produit]))>5,
"+",
""
)
)