openspending / openspending-migrate

0 stars 1 forks source link

Some datasets have measures which are not "measures" #2

Closed danfowler closed 8 years ago

danfowler commented 8 years ago

Derechos reconocidos netos (Andalucía) lists its measure as "Total euros por habitante" (amount) which is reflected in visualizations, etc. However, the model.json lists amount as having "type": "attribute" instead of "type": "measure". In mapping to FDP, it seems we can't guarantee that a measure in the old OS will have "type": "measure", so in sorting the measures from dimensions, perhaps we fall back to columns that are called "amount"?

danfowler commented 8 years ago

This only applies to two datasets: 'derechos_reconocidos_netos_andalucia', 'obligaciones_reconocidas_netas_andalucia'

Will treat them as special cases.