<?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: MROUND - Rounding to the nearest 5 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3054662#M105328</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FTE Rounded =Sumx(Table,&amp;nbsp; MROUND([FTE],5) )&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 08:43:07 GMT</pubDate>
    <dc:creator>johnyip</dc:creator>
    <dc:date>2023-02-01T08:43:07Z</dc:date>
    <item>
      <title>MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3013817#M102268</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;Having an issue with MROUND.&lt;/P&gt;&lt;P&gt;I have a table with college courses, and would like to look at the FTE for each institution and course, how ever it doesn't seem to like "the value for FTE cannot be determined. Either the column doesn't exist, or there is not current row for this column"&lt;/P&gt;&lt;P&gt;So table would look something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Institution&lt;/TD&gt;&lt;TD&gt;Qual&lt;/TD&gt;&lt;TD&gt;FTE&lt;/TD&gt;&lt;TD&gt;Gender&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019/20&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Dip&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/21&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Cert&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019/20&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;First&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/21&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Cert&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019/20&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;First&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The measure was FTE Rounded = MROUND([FTE]),5)&lt;/P&gt;&lt;P&gt;So the output would look like&lt;/P&gt;&lt;P&gt;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FTE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FTE Rounded&lt;/P&gt;&lt;P&gt;2019/20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;2020/21&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 (as less than 2.5, rounds down)&lt;/P&gt;&lt;P&gt;Any help greatly recieved.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:09:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3013817#M102268</guid>
      <dc:creator>Suzie_Suze_Sue</dc:creator>
      <dc:date>2023-01-11T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3014346#M102320</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467886" data-lia-user-login="Suzie_Suze_Sue" class="lia-mention lia-mention-user"&gt;Suzie_Suze_Sue&lt;/a&gt; , this you need to create a new column &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FTE Rounded = MROUND([FTE]),5)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The measure will be like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FTE Rounded =Sumx(Table,&amp;nbsp; MROUND([FTE]),5) ) &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 15:51:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3014346#M102320</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-11T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3014383#M102325</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467886" data-lia-user-login="Suzie_Suze_Sue" class="lia-mention lia-mention-user"&gt;Suzie_Suze_Sue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i fully get your, please create a calculated table with this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;SumTable = 
VAR _table = 
ADDCOLUMNS(
    VALUES( TableName[Year] ),
    "FTE",
    CALCULATE(SUM(TableName[FTE]))
)
RETURN
ADDCOLUMNS(
     _table,
    "FTE Rounded",
    MROUND([FTE], 5)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried and it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3014383#M102325</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-11T16:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3019196#M102657</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I have tried this and get the error&lt;/P&gt;&lt;P&gt;The syntaxt for ') is incorrect. 9DAX(Sumx(Table, MROUND([FTE]),5) ))).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3019196#M102657</guid>
      <dc:creator>Suzie_Suze_Sue1</dc:creator>
      <dc:date>2023-01-13T12:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3023532#M102982</link>
      <description>&lt;P&gt;Thanks this works in a table, but doesn't work when adding in a slicer.&lt;/P&gt;&lt;P&gt;Say for example I needed a matrix in Gender by year with a larger dataset, and then want to filer by qualification&lt;/P&gt;&lt;P&gt;Filter = Dip&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16/17&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17/18&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19/20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20/21&lt;/P&gt;&lt;P&gt;Male&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;222 (220)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;256(255)&amp;nbsp; &amp;nbsp; 212(210)&amp;nbsp; &amp;nbsp; 248(250)&amp;nbsp; &amp;nbsp; 227(225)&lt;/P&gt;&lt;P&gt;Female&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;229 (230)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;246(245)&amp;nbsp; &amp;nbsp; 232(230)&amp;nbsp; &amp;nbsp; 248(250)&amp;nbsp; &amp;nbsp; 207(205)&lt;/P&gt;&lt;P&gt;Would I need to add multiple columns in? In brackets is the rounded numbers, don't need to to displayed this way, but this is what should be pulling through rather than the whole number.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 15:23:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3023532#M102982</guid>
      <dc:creator>Suzie_Suze_Sue1</dc:creator>
      <dc:date>2023-01-16T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3024828#M103089</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496921" data-lia-user-login="Suzie_Suze_Sue1" class="lia-mention lia-mention-user"&gt;Suzie_Suze_Sue1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you would need a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = 
VAR _sum = SUM(TableName[FTE])
RETURN
MROUND(_sum, 5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the sample data you provided in the original post and changing 5 to 2, it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s. please consider&amp;nbsp;@someone, if you seek further suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 06:11:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3024828#M103089</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-17T06:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3025545#M103154</link>
      <description>&lt;P&gt;Perfect!! Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 11:15:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3025545#M103154</guid>
      <dc:creator>Suzie_Suze_Sue1</dc:creator>
      <dc:date>2023-01-17T11:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND - Rounding to the nearest 5</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3054662#M105328</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FTE Rounded =Sumx(Table,&amp;nbsp; MROUND([FTE],5) )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:43:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND-Rounding-to-the-nearest-5/m-p/3054662#M105328</guid>
      <dc:creator>johnyip</dc:creator>
      <dc:date>2023-02-01T08:43:07Z</dc:date>
    </item>
  </channel>
</rss>

