<?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 Re: need help for foreign currency selection and converting values based on that in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146238#M112552</link>
    <description>&lt;P&gt;Yes, rates are available for all days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Each currency has conversion rates for all other currencies for each date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;END_DATE field changed to date format&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 03:19:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-22T03:19:41Z</dc:date>
    <item>
      <title>need help for foreign currency selection and converting values based on that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3120441#M110642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have three tables,&lt;/P&gt;&lt;P&gt;1. FCRATE -&amp;nbsp; Multiple fields, contain different currencies, dates, and conversion rates for other currencies&lt;/P&gt;&lt;P&gt;2. Project cost - Three fields - Project name, project transaction amount ($), Transaction date&lt;/P&gt;&lt;P&gt;3. Date table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationship between tables is by Date. FCRATE &amp;amp; Project Cost table connected to Date table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a visual showing the Project cost for each project. Also have a filter to see Project cost by date, month or year.&lt;/P&gt;&lt;P&gt;Now, I need a new slicer, that allows users to select the desired currency from a drop-down. Once the user selects a currency, all amounts in visuals need to convert to that currency based on the currency conversion rate as of the selected date from the filter.&lt;/P&gt;&lt;P&gt;Other conditions,&lt;/P&gt;&lt;P&gt;if the user selected a desired month or year - then the average currency rate for that period should be calculated and converted to the project cost amount based on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My FCRATE table,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone guide me in creating key measures and slicers for this?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 03:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3120441#M110642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-09T03:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: need help for foreign currency selection and converting values based on that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3126735#M111076</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you please provide your pbix file without privacy information and desired output with more details?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 03:06:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3126735#M111076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T03:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: need help for foreign currency selection and converting values based on that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3126812#M111082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Are the rates available for every single date? Meaning if I select any date from the date table there will be a corrosponding exchange rate for all of the currencies in the &lt;SPAN&gt;FCRATE&lt;/SPAN&gt;&amp;nbsp;table?&lt;BR /&gt;The END_DATE of the&amp;nbsp;&lt;SPAN&gt;FCRATE&amp;nbsp;table seems to be of a text data type. Be aware that this needs to be of a DateTime data type.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If above two points are confirmed and the&amp;nbsp;FCRATE[CODE] is placed as a slicer then project cost measure can be amended as&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Project Cost Amount =
SUM ( 'Project Cost'[Transaction Amount] ) * SELECTEDVALUE ( FCRATE[USD], 1 ) &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 04:20:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3126812#M111082</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T04:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: need help for foreign currency selection and converting values based on that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146238#M112552</link>
      <description>&lt;P&gt;Yes, rates are available for all days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Each currency has conversion rates for all other currencies for each date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;END_DATE field changed to date format&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 03:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146238#M112552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-22T03:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: need help for foreign currency selection and converting values based on that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146336#M112562</link>
      <description>&lt;P&gt;Please also note that the structure of the FCRATE Table is as follows,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let's assume transaction amounts are in the XOF rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I select GBP on the slicer and the date 30/03/2020 from the date filter, What I'm expecting is the transaction amount will be changed from XOF to reflect the GBP amount for that date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;1. if the transaction amount is 10,000 in XOF, once the slicer is set to GBP &amp;amp;&amp;nbsp; date filter is applied as 30/03/2020, the transaction amount should be changed to 13.5689&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Let's assume transaction amounts are in the CAD rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if the transaction amount is 10,000 in CAD, once the slicer is set to USD &amp;amp;&amp;nbsp; date filter is applied as 30/03/2020, the transaction amount should be changed to 7,058.5172,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;likewise, the transaction amount needs to change based on the transaction currency, and the selected currency on slicer &amp;amp; date.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 05:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146336#M112562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-22T05:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: need help for foreign currency selection and converting values based on that</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146709#M112580</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;My previous reply solution was based on the assumption that the Date table filters both '&lt;SPAN&gt;Project cost' and FCRATE tables. If this is the case then I don't see why it shouldn't work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In case a range of dates is selected, the following should work&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Project Cost Amount =
SUMX (
    VALUES ( 'Date'[Date] ),
    CALCULATE (
        SUM ( 'Project Cost'[Transaction Amount] ) * SELECTEDVALUE ( FCRATE[USD], 1 )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-for-foreign-currency-selection-and-converting-values/m-p/3146709#M112580</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-22T09:17:17Z</dc:date>
    </item>
  </channel>
</rss>

