Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Currencies Example #76

Closed
rufuspollock opened this issue Nov 3, 2015 · 15 comments
Closed

Multiple Currencies Example #76

rufuspollock opened this issue Nov 3, 2015 · 15 comments
Milestone

Comments

@rufuspollock
Copy link
Member

Example how to deal with a dataset with multiple currencies (or clarify we don't deal with it).

@pwalsh
Copy link
Member

pwalsh commented Nov 3, 2015

  • We might want to accept a scenario where each measure is a different currency of the same thing (basically, some hardcoded exchange rate)
  • We probably don't want a scenario where a single measure can be in multiple currencies

@timgdavies
Copy link

Are there source datasets which provide data in multiple currencies to point to? Discussion this from supply side examples I suspect would be useful.

Not sure if it is relevant to any of the cases of source data, but in IATI an important attribute of transactions is the value-date (i.e. the date which should be used for currency conversion, which is not always the date of the transaction itself if a secondary currency value has been given based on a conversion).

@rufuspollock
Copy link
Member Author

@timgdavies I believe a Chilean example has this but I'm not sure we have one already worked up /cc @danfowler

Good point on value-date - basically this relates to a much bigger discussion of handling numeraire "currency" (i.e. converting to a standard currency and time e.g. 2001 USD or even PPP 2001 USD) - see openspending/openspending#284 for more on this

@danfowler
Copy link
Contributor

@rgrp @timgdavies we have no Chilean example for this, and I can't think of a dataset right now that has multiple currencies

@jazzido
Copy link

jazzido commented Dec 2, 2015

Chile's procurement site certainly uses multiple currencies. I've seen public tenders published in Chilean peso, US Dollar and Unidad de Fomento (an inflation-adjusted chilean currency used in public tendering.)

@rufuspollock
Copy link
Member Author

@jazzido are these the same transaction presented in multiple currencies or different transactions within the same dataset in different currencies?

And welcome btw :-) - great to have your participation!

@jazzido
Copy link

jazzido commented Dec 4, 2015

@jazzido are these the same transaction presented in multiple currencies or different transactions within the same dataset in different currencies?

AFAIK, a transaction or budget line is presented in a single currency.

And welcome btw :-) - great to have your participation!

Thanks!

@rufuspollock
Copy link
Member Author

@jazzido ok great - because i have seen budgets where they have the same line but put both the local value and the equivalent us dollar value.

@danfowler
Copy link
Contributor

OK, in a dataset where a single budget line has two "amount" columns with two different currencies, a different currency can be modeled for each measure very easily in our current specification.

As I read this issue now, the explicit ask is for a dataset that has multiple currencies within one column where presumably, the currency information comes from a different column (per openspending/osep#29 (comment))

If this is the case, then perhaps we are actually looking for a general solution to #91 where attributes of a measure, in addition to the measure itself, get their values from fields in the source CSV.

Do I have this right @rgrp ?

cc: @pwalsh

@rufuspollock
Copy link
Member Author

@danfowler that's right. I have to say I'd put this relatively low priority right now and push into v0.4 awaiting a nice concrete example.

@danfowler
Copy link
Contributor

@rgrp OK, so pushing this and frictionlessdata/datapackage#91 to v0.4 milestone.

@danfowler danfowler added this to the v0.4 milestone Jan 22, 2016
@akariv
Copy link
Member

akariv commented Jun 5, 2016

I can think of 3 different data sets (2 related to procurements and another related to political donations) having currency as a separate column.

When we think of a solution to this, let's consider the more generic case which is having two measures, each with its own currency column.
One option would be to add a currencyRef property to a measure which would hold the identifier of the dimension that contains the currency information.

(Also related to frictionlessdata/datapackage#139)

@rufuspollock
Copy link
Member Author

@akariv can you link to these specific examples.

@akariv
Copy link
Member

akariv commented Jun 11, 2016

Yes, here are a few from Israel (Google auto-translate to English works reasonably enough in them):

  1. https://foi.gov.il/he/node/2482
    This is spending data from Israel's FOIA portal (there's one such file per ministry per quarter).
    Column M in the downloadable excel file is the currency.
  2. http://www.mr.gov.il/ExemptionMessage/Pages/SearchExemptionMessages.aspx
    This is the government's transparency portal for exempt-from-tender procurements.
    Each item in the HTML table leads to a detail view, in which the sum and currency are specified.
  3. https://statements.mevaker.gov.il/GuarantyDonationPublisher/GuarantyDonationPublisher.aspx
    This dataset is for donations to candidates in party primary elections.
    Here you have two columns, one for the amount in NIS and another for 'foreign currency donations', which states the amount and the currency.

@pwalsh
Copy link
Member

pwalsh commented Sep 7, 2017

Moved to frictionlessdata/datapackage-fiscal#6

@pwalsh pwalsh closed this as completed Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants