<?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: Calculate on same field with a currencyFactor in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-on-same-field-with-a-currencyFactor/m-p/771303#M3704</link>
    <description>&lt;P&gt;You can go to Add Column, then Custom Column and type the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if [Currency_Factor] = 0 then [Amount] else  [Amount] / [Currency_Factor]&lt;/PRE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Love hearing about Power BI tips, jobs and news?&lt;BR /&gt;I love to share about these - connect with me!&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/stevencampbellmilwaukee" target="_blank" rel="noopener"&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;Stay up to date on&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/U&gt;&lt;img /&gt;&lt;/A&gt;&lt;A href="https://powerbi.tips/author/steve-campbell/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Read my blogs on&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Remember to spread knowledge in the community when you can!&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 00:30:54 GMT</pubDate>
    <dc:creator>SteveCampbell</dc:creator>
    <dc:date>2019-08-21T00:30:54Z</dc:date>
    <item>
      <title>Calculate on same field with a currencyFactor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-on-same-field-with-a-currencyFactor/m-p/770514#M3666</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue where i in the same collum have differnt types of amounts and in different currency. But i need to calculate it to DKK for them all. i have an factor for other than DKK, thats set to 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made this command - that works in Qlickview - but need something that works in PowerBi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IndkøbsprisDKK = if (Currency_Factor = 0 ; (Amount))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IndkøbsprisDKK = if (Currency_Factor &amp;lt; 0 ; (Amount / Currency_Factor))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IndkøbsprisDKK = if (Currency_Factor &amp;gt; 0 ; (Amount / Currency_Factor)) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this is my dato and how it looks:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone that can help me?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2019 06:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-on-same-field-with-a-currencyFactor/m-p/770514#M3666</guid>
      <dc:creator>cupedersen</dc:creator>
      <dc:date>2019-08-20T06:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate on same field with a currencyFactor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-on-same-field-with-a-currencyFactor/m-p/771303#M3704</link>
      <description>&lt;P&gt;You can go to Add Column, then Custom Column and type the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if [Currency_Factor] = 0 then [Amount] else  [Amount] / [Currency_Factor]&lt;/PRE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Love hearing about Power BI tips, jobs and news?&lt;BR /&gt;I love to share about these - connect with me!&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/stevencampbellmilwaukee" target="_blank" rel="noopener"&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;Stay up to date on&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/U&gt;&lt;img /&gt;&lt;/A&gt;&lt;A href="https://powerbi.tips/author/steve-campbell/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Read my blogs on&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Remember to spread knowledge in the community when you can!&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 00:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-on-same-field-with-a-currencyFactor/m-p/771303#M3704</guid>
      <dc:creator>SteveCampbell</dc:creator>
      <dc:date>2019-08-21T00:30:54Z</dc:date>
    </item>
  </channel>
</rss>

