Current Enrollment

9 views
Skip to first unread message

Janelle Haire

unread,
Jun 23, 2022, 1:41:12 PM6/23/22
to googleschoo...@googlegroups.com
Hi all,

Nice to write for the first time. Happy to have this community! 

I am new to GDS and wondering if someone can help me figure out how to write a formula to create a current student enrollment dimension?

I have a large dataset with all entry and exit dates attached. Students with no exit date are current students.

The code I tried was:
CASE
When Exit Date = DATE(' ') then 1
Else 0
END
However, it told me ' ' is not a valid date. So, then I duplicated the field, made the date into plain text, and tried:
CASE
When Exit Date DATE(''then 1
Else 0
END

This formula did not return any errors, but when I tried to sum "current enrollment" on a scorecard, I kept getting 0. Any ideas?
image.png


Thanks in advance!

--


Janelle Haire

she/her/hers

Director of Data and Policy

Central Falls School District

(c): 401-741-0455

Schedule time to meet with me here. 



CONFIDENTIALITY NOTICE: The information contained in this transmission is confidential. It is intended solely for the use of the individual(s) or organization(s) to whom it is addressed. If you have received this transmission in error, please advise the sender and destroy all pages. Any disclosure, copying or further distribution is prohibited unless explicitly approved in writing by the Central Falls Public Schools.

Brett Noble

unread,
Jun 23, 2022, 1:51:31 PM6/23/22
to googleschoo...@googlegroups.com
Hi Janelle, 

It sounds like the Exit Date field is null/blank for current students. If so, try the following: 

CASE
WHEN Exit Date IS NULL THEN 1
ELSE 0
END

--
Brett Noble
Director of Data and Information
ACE Charter Schools
(408) 313-1471


--
You received this message because you are subscribed to the Google Groups "Data Studio in Education" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googleschool-data...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googleschool-datastudio/CAAqabaJoKu%3DiVfTq0UyN42oGuTzrAMq%2BvbchobCqwHvuGCe3VA%40mail.gmail.com.

Laura Tilton

unread,
Jun 24, 2022, 6:35:36 AM6/24/22
to googleschoo...@googlegroups.com
Just a side note that you can also use IF since there are just two outcomes. 

IF (Exit Date IS NULL, 1, 0)

Data Studio didn’t always support IF so those of us who have been using it a while tend to use CASE out of habit. I’ve been trying to get myself to use IF where possible for simplicity!

Laura

Sent from my iPhone

On Jun 23, 2022, at 1:51 PM, 'Brett Noble' via Data Studio in Education <googleschoo...@googlegroups.com> wrote:



Janelle Haire

unread,
Jun 24, 2022, 7:11:37 AM6/24/22
to googleschoo...@googlegroups.com
Thank you both so much!! 

Best,

Janelle

On Jun 24, 2022, at 6:35 AM, Laura Tilton <tilto...@gmail.com> wrote:

Just a side note that you can also use IF since there are just two outcomes. 

Anthony Claypool

unread,
Jun 24, 2022, 9:19:58 AM6/24/22
to googleschoo...@googlegroups.com
Great tip on IF; that's a lot less typing.  I'll go see for myself if it supports nested IF - that was my jam when I was doing all of this in excel, lol.



--

Anthony Claypool he/his/him

Director of Data Systems & Analytics | Distinctive Schools 

910 W. Van Buren St., Suite 315 • Chicago, IL 60607

T: 312-332-4998 

W: www.distinctiveschools.org/ 

 

CONFIDENTIALITY NOTE: This email and any attachments are confidential and may contain FERPA-protected information. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this email or any attachments are prohibited.  If you have received this email in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.

Reply all
Reply to author
Forward
0 new messages