Skip to content

Instantly share code, notes, and snippets.

@phvaillant
Last active September 27, 2019 10:08
Show Gist options
  • Save phvaillant/7b5fb1a1dab4b92010776474ff92b61a to your computer and use it in GitHub Desktop.
Save phvaillant/7b5fb1a1dab4b92010776474ff92b61a to your computer and use it in GitHub Desktop.
<ods-dataset-context context="nobel,nobelf" nobel-dataset="nobel-prize-laureates" nobel-domain="public" nobel-parameters="{'disjunctive.category':true}" nobelf-dataset="nobel-prize-laureates@public" nobelf-parameters="{'disjunctive.category':true,'refine.gender':'female'}">
<div ods-aggregation="total, totalf"
ods-aggregation-total-context="nobel"
ods-aggregation-total-function="COUNT"
ods-aggregation-totalf-context="nobelf"
ods-aggregation-totalf-function="COUNT">
There have been <strong>{{total}}</strong> laureates of the Nobel prize, but only <strong>{{totalf}}</strong>
prizes have been awarded to women, which represents <strong>{{totalf/total*100 | number:2}}%</strong> of the total.
</div>
</ods-dataset-context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment