J'ai ensemble de données comme celles-ciComment la valeur groupe qui est le résultat de l'expression dans RDLC Rapport
Champ "Type A", "Type B" et "type C" est un type booléen.
J'ai créé un tableau pour l'assignation ci-dessus. A Type La colonne du tableau est définie par cette expression.
= Switch(
Fields!TYPE_A.Value = 1 And Fields!TYPE_B.Value = 0 And Fields!TYPE_C.Value = 0 , "Regrinding",
Fields!TYPE_A.Value = 0 And Fields!TYPE_B.Value = 1 And Fields!TYPE_C.Value = 0 , "Coating",
Fields!TYPE_A.Value = 0 And Fields!TYPE_B.Value = 0 And Fields!TYPE_C.Value = 1 , "Modifying",
Fields!TYPE_A.Value = 1 And Fields!TYPE_B.Value = 1 And Fields!TYPE_C.Value = 0 , "Regrind & Coating",
Fields!TYPE_A.Value = 1 And Fields!TYPE_B.Value = 0 And Fields!TYPE_C.Value = 1 , "Regrind & Modifying",
Fields!TYPE_A.Value = 0 And Fields!TYPE_B.Value = 1 And Fields!TYPE_C.Value = 1 , "Coating & Modifying",
Fields!TYPE_A.Value = 1 And Fields!TYPE_B.Value = 0 And Fields!TYPE_C.Value = 1 , "Regriding & Modifying",
Fields!TYPE_A.Value = 1 And Fields!TYPE_B.Value = 1 And Fields!TYPE_C.Value = 1 , "Regriding,Coatin & Modifying",
1 = 1 , "None")
A "count Type" colonne I besoin de compter chaque type en regroupant deux données
1.TOOLS_CODE de DATSET
valeur 2.String qui est le résultat de l'expression à "Type" Colonne de Tablix
Que dois-je faire?
SORTIE:
si Dataset a des articles comme ceux-ci
- TLD001 (dactylographié Regriding)
- TLD001 (dactylographié Regriding)
- TLD001 (dactylographié Coating)
- TLD002 (tapé Regriding)
- TLD003 (dactylographié Regrind & revêtement)
Un rapport montrera ...