Skip to content

Instantly share code, notes, and snippets.

@nathanp
Last active April 30, 2019 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanp/49b16a37e08cbd95f6d08696aa9bc632 to your computer and use it in GitHub Desktop.
Save nathanp/49b16a37e08cbd95f6d08696aa9bc632 to your computer and use it in GitHub Desktop.
{%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