<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Currency conversion using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/678450#M415</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my name is Alex and I'm not new to PowerBI, but quite new to using DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to set up a currency conversion within my dashboard and the conversion shall be done with daily changing exchange rates for both KPIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- a huge query from BW (~ 400.000 data sets with two KPI based on calendar days in EUR) (name: MERGEBWDATA)&lt;/P&gt;&lt;P&gt;- a query created out of the BW-Query, to have unique values for date (name: 30Q2AllDates)&lt;/P&gt;&lt;P&gt;- a query representing a download with several exchange rates to EUR (e.g. USD, GBP, NOK) on a daily basis (starting 1995, modified via pivoting, downfill, unpivoting to get the exchange rates for the weekend days) (name: ExChangeRatesFinal)&lt;/P&gt;&lt;P&gt;- a query created out of ExChangeRatesFinal to get the single values for the selected Currency which is stored in the Variable M2_SelectedCurrency&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found several examples how this could work and tried to copy / reconstruct them (e.g. &lt;A href="https://businessintelligist.com/2015/03/17/power-bi-tutorial-how-to-implement-currency-conversion-using-power-query-and-power-pivot" target="_blank"&gt;https://businessintelligist.com/2015/03/17/power-bi-tutorial-how-to-implement-currency-conversion-using-power-query-and-power-pivot&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;but obviously it doesn't work - the displayed values are exactly the same as the base values in EUR.&lt;/P&gt;&lt;P&gt;Furthermore I have no clue until now what I can do to keep EUR as a selected value since it is not in the query with the exchange rates (because it's the base currency)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relations are created as within the above mentioned link and the measures are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;MeasPOVolume = sum(MERGEBWDATA[Net Value (EUR)])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;2.MeasPOVolume EX =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(HASONEVALUE(CurrencySelector[CurrencySelector]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMX(ADDCOLUMNS(MERGEBWDATA;"EXNet";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERGEBWDATA[Net Value (EUR)]*LOOKUPVALUE('ExChangeRatesFinal'[ExChangeRate];ExChangeRatesFinal[Date];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERGEBWDATA[PO Document Date];ExChangeRatesFinal[Currency];CurrencySelector[M2_SelectedCurrency]));[MeasPOVolume])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For any hints how I could get things working I would be very grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance and best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 08:42:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-26T08:42:11Z</dc:date>
    <item>
      <title>Currency conversion using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/678450#M415</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my name is Alex and I'm not new to PowerBI, but quite new to using DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to set up a currency conversion within my dashboard and the conversion shall be done with daily changing exchange rates for both KPIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- a huge query from BW (~ 400.000 data sets with two KPI based on calendar days in EUR) (name: MERGEBWDATA)&lt;/P&gt;&lt;P&gt;- a query created out of the BW-Query, to have unique values for date (name: 30Q2AllDates)&lt;/P&gt;&lt;P&gt;- a query representing a download with several exchange rates to EUR (e.g. USD, GBP, NOK) on a daily basis (starting 1995, modified via pivoting, downfill, unpivoting to get the exchange rates for the weekend days) (name: ExChangeRatesFinal)&lt;/P&gt;&lt;P&gt;- a query created out of ExChangeRatesFinal to get the single values for the selected Currency which is stored in the Variable M2_SelectedCurrency&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found several examples how this could work and tried to copy / reconstruct them (e.g. &lt;A href="https://businessintelligist.com/2015/03/17/power-bi-tutorial-how-to-implement-currency-conversion-using-power-query-and-power-pivot" target="_blank"&gt;https://businessintelligist.com/2015/03/17/power-bi-tutorial-how-to-implement-currency-conversion-using-power-query-and-power-pivot&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;but obviously it doesn't work - the displayed values are exactly the same as the base values in EUR.&lt;/P&gt;&lt;P&gt;Furthermore I have no clue until now what I can do to keep EUR as a selected value since it is not in the query with the exchange rates (because it's the base currency)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relations are created as within the above mentioned link and the measures are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;MeasPOVolume = sum(MERGEBWDATA[Net Value (EUR)])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;2.MeasPOVolume EX =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(HASONEVALUE(CurrencySelector[CurrencySelector]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMX(ADDCOLUMNS(MERGEBWDATA;"EXNet";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERGEBWDATA[Net Value (EUR)]*LOOKUPVALUE('ExChangeRatesFinal'[ExChangeRate];ExChangeRatesFinal[Date];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERGEBWDATA[PO Document Date];ExChangeRatesFinal[Currency];CurrencySelector[M2_SelectedCurrency]));[MeasPOVolume])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For any hints how I could get things working I would be very grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance and best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 08:42:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/678450#M415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T08:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/678630#M416</link>
      <description>&lt;P&gt;Are you able to share some sample data from each of your tables or a PBIX file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have seveal reports that have currancy exchange involoved fo muliple exchange rates so i am happy to take a look.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:46:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/678630#M416</guid>
      <dc:creator>AnthonyTilley</dc:creator>
      <dc:date>2019-04-26T11:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/679699#M426</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 08:50:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/679699#M426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-29T08:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/679700#M427</link>
      <description>&lt;P&gt;Hi Anthony, thank you for your feedback. I've posted an screenshot of the queries and relations and some examples. I hope this is sufficient :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 08:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/679700#M427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-29T08:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/688393#M559</link>
      <description>&lt;P&gt;Hi all, I've found a solution via adding columns with exchange rates to the base table and changing the calculation withing the measure&amp;nbsp;via switch. Not the optimum but it works fine :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &amp;amp; best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-conversion-using-DAX/m-p/688393#M559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-10T07:41:34Z</dc:date>
    </item>
  </channel>
</rss>

