Last active
April 30, 2019 19:54
-
-
Save nathanp/49b16a37e08cbd95f6d08696aa9bc632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%metricvalue where:'MetricId == 990' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentWorshipAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} | |
{%metricvalue where:'MetricId == 1117' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentChapelAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} | |
{%metricvalue where:'MetricId == 1098' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentKidsWorshipAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} | |
{%metricvalue where:'MetricId == 1108' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentWorshipServingAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} | |
{%metricvalue where:'MetricId == 1110' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentOnlineAttendance %}{{ metricvalue.YValue | Format:'###0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} | |
{% assign previousSunday = 'Now' | SundayDate | DateAdd:-7 | Date:'MM-dd-yyyy' %} | |
{{ currentWorshipAttendance | Plus:currentChapelAttendance | Plus:currentKidsWorshipAttendance | Plus:currentWorshipServingAttendance | Plus:currentOnlineAttendance }}, {{ previousSunday }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment