Forum Discussion
daviss62
8 years agoFrequent Visitor
NOT function with list of values
I have the following formula that calculated column for the number of courses completed by students. WW Completed Courses = SUMMARIZE( 'WW Registrations', [Student ID], [Academic...
- Anonymous8 years ago
Hi daviss62,
You can direct add filters on table to filter records:
WW Completed Courses = SUMMARIZE ( FILTER ( ALL ( 'WW Registrations' ), NOT ( 'WW Registrations'[Course Grade Official] IN { "I", "IP", "N", "T", "W", BLANK () } ) ), [Student ID], [Academic Year], [Academic Year End Academic Career], [Academic Year End Academic Plan No Roll-up Description], [Gender Description], [Age Groups], [Age], [Ethnicity (IPEDS)], "Completed Courses", COUNTA ( 'WW Registrations'[Student ID] ) )Regareds,
Xiaoxin Sheng
Anonymous
8 years agoNot applicable
Hi daviss62,
You can direct add filters on table to filter records:
WW Completed Courses =
SUMMARIZE (
FILTER (
ALL ( 'WW Registrations' ),
NOT (
'WW Registrations'[Course Grade Official]
IN { "I", "IP", "N", "T", "W", BLANK () }
)
),
[Student ID],
[Academic Year],
[Academic Year End Academic Career],
[Academic Year End Academic Plan No Roll-up Description],
[Gender Description],
[Age Groups],
[Age],
[Ethnicity (IPEDS)],
"Completed Courses", COUNTA ( 'WW Registrations'[Student ID] )
)
Regareds,
Xiaoxin Sheng
- daviss628 years agoFrequent Visitor
Hi Xiaoxin,
Thanks for your response! When I try using the formula, I get the following error message:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
I'm not quite sure what the fix is. Is this something you can help me with?
Thanks,
Sean
- Anonymous8 years agoNot applicable
- daviss628 years agoFrequent Visitor
Hi Anonymous
I actually realized that yesterday afternoon. I must have accidentally clicked "New Measure" instead of "New Table".
Thanks again for your assistance!
Sean