<?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: How to replace decimal values but retain the original whole number in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222175#M117808</link>
    <description>&lt;P&gt;Thank you that worked.&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 13:10:37 GMT</pubDate>
    <dc:creator>Rotcorp</dc:creator>
    <dc:date>2023-05-05T13:10:37Z</dc:date>
    <item>
      <title>How to replace decimal values but retain the original whole number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222101#M117795</link>
      <description>&lt;P&gt;I'm working with a netsuit timesheeting export that records a half fraction as .3&lt;/P&gt;&lt;P&gt;e.g. 37.5 hours a week shows as 37.3.&lt;BR /&gt;I have tried useing a conditional column to convert the .3 to a .5 but if the text contains .3 (else return the column value) however I can't figure out how to return the value before the decimal point&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I using the correct method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 12:42:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222101#M117795</guid>
      <dc:creator>Rotcorp</dc:creator>
      <dc:date>2023-05-05T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace decimal values but retain the original whole number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222124#M117798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="547738" data-lia-user-login="Rotcorp" class="lia-mention lia-mention-user"&gt;Rotcorp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use the "Replace Value" option then manually edit thecode adding a conditional if statement and that says something like&lt;/P&gt;
&lt;P&gt;each if Text.Contains ( [Column], ".3" ) then ".3" else null&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 12:52:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222124#M117798</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-05T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace decimal values but retain the original whole number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222156#M117803</link>
      <description>&lt;P&gt;Hi. My suggestion is&lt;/P&gt;&lt;P&gt;1. Create a column that round down the value (column1) :&amp;nbsp;Number.RoundDown([Total Hours])&lt;/P&gt;&lt;P&gt;2. Create a column2 that returns the decimal part, i.e..&amp;nbsp; [Column1] -&amp;nbsp;[Total Hours]&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Create column3 a which is [Column1]+0.5&lt;/P&gt;&lt;P&gt;4. Then make a conditional column&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF Column2 =0.7 than Column3&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;[Total Hours]&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222156#M117803</guid>
      <dc:creator>mrcss23</dc:creator>
      <dc:date>2023-05-05T13:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace decimal values but retain the original whole number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222175#M117808</link>
      <description>&lt;P&gt;Thank you that worked.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:10:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-decimal-values-but-retain-the-original-whole/m-p/3222175#M117808</guid>
      <dc:creator>Rotcorp</dc:creator>
      <dc:date>2023-05-05T13:10:37Z</dc:date>
    </item>
  </channel>
</rss>

