Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Can you suggest what I'm doing wrong here.
I want to count string "Primary" from different columns.
TotalPrimarySupervison = CALCULATE(
COUNTAX(FILTER(Table1,Table1[Primary/Secondary1]="Primary"), Table1[SPE/DGO/school counsellor/psychologist])||
COUNTAX(FILTER(Table1,Table1[Primary/Secondary2]="Primary"), Table1[SPE/DGO/school counsellor/psychologist])||
COUNTAX(FILTER(Table1,Table1[Primary/Secondary3]="Primary"), Table1[SPE/DGO/school counsellor/psychologist])||
COUNTAX(FILTER(Table1,Table1[Primary/Secondary4]="Primary"), Table1[SPE/DGO/school counsellor/psychologist])||
COUNTAX(FILTER(Table1,Table1[Primary/Secondary5]="Primary"), Table1[SPE/DGO/school counsellor/psychologist])||
COUNTAX(FILTER(Table1,Table1[Primary/Secondary6]="Primary"), Table1[SPE/DGO/school counsellor/psychologist]))
TotalPrimarySupervison = CALCULATE(
COUNTAX(FILTER(Table1,
Table1[Primary/Secondary1]="Primary" ||
Table1[Primary/Secondary2]="Primary" ||
Table1[Primary/Secondary3]="Primary" ||
Table1[Primary/Secondary4]="Primary" ||
Table1[Primary/Secondary5]="Primary" ||
Table1[Primary/Secondary6]="Primary"),
Table1[SPE/DGO/school counsellor/psychologist]))
TotalPrimarySupervison = CALCULATE(
[....] --?
(FILTER(
Table1,
Table1[Primary/Secondary1]="Primary" ||
Table1[Primary/Secondary2]="Primary" ||
Table1[Primary/Secondary3]="Primary" ||
Table1[Primary/Secondary4]="Primary" ||
Table1[Primary/Secondary5]="Primary" ||
Table1[Primary/Secondary6]="Primary"
)
))
Many thanks in advance.
User | Count |
---|---|
41 | |
27 | |
23 | |
18 | |
15 |
User | Count |
---|---|
54 | |
35 | |
19 | |
18 | |
15 |