<?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: The calculation always returns a value without commas in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028490#M103377</link>
    <description>&lt;P&gt;just remove the " around the 1.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 11:42:11 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-01-18T11:42:11Z</dc:date>
    <item>
      <title>The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028151#M103342</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I'm stuck on a fairly simple point.&lt;BR /&gt;I have an import value in a field. This is usually in euro cents, but can also be in a completely different currency.&lt;BR /&gt;To convert this foreign currency into euros, I have a table with currency rates. I also let this currency rate be filled dynamically with the help of a lookup command.&lt;BR /&gt;Now I have an amount in cents in column A and the conversion rate in column B. The result of this calculation should now appear in C.&lt;BR /&gt;So A*B .&lt;/P&gt;&lt;P&gt;So far so good.&lt;/P&gt;&lt;P&gt;Unfortunately, PowerBi always delivers a result without , . So the calculation becomes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6250 * 0.0887 =5543750 and not 554,375.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;No matter what I do, format as currency etc., it is never correct.&lt;/P&gt;&lt;P&gt;Even from 2142 Eurocent the calculation makes 2142 € and not 21,42€.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 09:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028151#M103342</guid>
      <dc:creator>aiplbonn</dc:creator>
      <dc:date>2023-01-18T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028241#M103350</link>
      <description>&lt;P&gt;The type of the column is text, you need to change it to decimal number or fixed decimal number&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 09:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028241#M103350</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-01-18T09:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028389#M103369</link>
      <description>&lt;P&gt;Unfortunately, that changes nothing.&lt;/P&gt;&lt;P&gt;If I select Fix decimal or only decimal as the data type, the result is 5543750.&lt;/P&gt;&lt;P&gt;If I select Decimal for Format, the result is 5543750,00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 10:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028389#M103369</guid>
      <dc:creator>aiplbonn</dc:creator>
      <dc:date>2023-01-18T10:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028395#M103371</link>
      <description>&lt;P&gt;looks like the conversion rate is also a text field, not sure if an implicit cast is messing things up.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 10:49:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028395#M103371</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-01-18T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028481#M103375</link>
      <description>&lt;P&gt;I found the error, the exchange rate already did not indicate that it was a decimal number.&lt;/P&gt;&lt;P&gt;But now I have another problem. When I search for the exchange rate, I do it like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOOKUPVALUE(exchange rate[currencytoEuro],exchange rate[currency_id],VoucherData[currency_id])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If no matching exchange rate can be found, a 1 should be inserted.&lt;BR /&gt;Previously I did it like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOOKUPVALUE(exchange rate[currencyToEuro],exchange rate[currency_id],VoucherData[currency_id], "1")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now PowerBi is complaining because the 1 is written as text and not as a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expressions that result in the variant data type cannot be used to define calculated columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I ensure that a 1 is inserted when the exchange rate is not found?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 11:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028481#M103375</guid>
      <dc:creator>aiplbonn</dc:creator>
      <dc:date>2023-01-18T11:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028490#M103377</link>
      <description>&lt;P&gt;just remove the " around the 1.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 11:42:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3028490#M103377</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-01-18T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: The calculation always returns a value without commas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3055460#M105385</link>
      <description>&lt;P&gt;Thank you all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This was the mistake&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-calculation-always-returns-a-value-without-commas/m-p/3055460#M105385</guid>
      <dc:creator>aiplbonn</dc:creator>
      <dc:date>2023-02-01T14:41:34Z</dc:date>
    </item>
  </channel>
</rss>

