<?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: ROUNDDOWN with a minimum of 1 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143325#M112333</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies.&amp;nbsp; This is a bit more complex than I originally thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How is the hierarchy defined?&amp;nbsp; What are the parent, child, granchild items?&lt;/P&gt;&lt;P&gt;- Can you also show an example which displays the column names used, and the definitions of measures within your original measure "[10% Increase]"?&lt;/P&gt;&lt;P&gt;- Ah actually, this is a Calculated Column (and not a measure), correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 20:26:05 GMT</pubDate>
    <dc:creator>WinterMist</dc:creator>
    <dc:date>2023-03-20T20:26:05Z</dc:date>
    <item>
      <title>ROUNDDOWN with a minimum of 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143065#M112296</link>
      <description>&lt;P&gt;Greetings, looking to round a formula down but I'm running in to an issue where values less than 0.5 return a 0.&amp;nbsp; I'd like to set a minimum value of 1 in these instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried an if/then statement where IF the formula returns a value equal to "0" then change it to "1" but the issue with this is that it messes with the grouping and returns a hundreds of blank values and repeats the groups hundreds of times.&lt;BR /&gt;&lt;BR /&gt;Here's the forumula I'm using.&amp;nbsp; Help is much appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;10% Increase:=ROUNDDOWN([# New SS (LY)]*VALUES(Increase_Target[NEW SS increase:]),0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:55:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143065#M112296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-20T17:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: ROUNDDOWN with a minimum of 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143235#M112319</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide a small dataset example &amp;amp; visual which show the issue mentioned?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ISSUE: "...&lt;SPAN&gt;it messes with the grouping and returns a hundreds of blank values and repeats the groups hundreds of times."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nathan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 19:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143235#M112319</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-20T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: ROUNDDOWN with a minimum of 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143310#M112327</link>
      <description>&lt;P&gt;If I ROUNDDOWN but don't set a minimum of "1"... I get each business unit properly mapped out in the hierarchy.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If I add an IF/THEN statement (if the rounddown formula is less than 1), it breaks the hierarchy and lists every child unit in the company under every parent unit with no value (just blanks).&lt;BR /&gt;&lt;BR /&gt;Effectively, what I want is the first scenario but I want the "0's" to be "1's".&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 20:10:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143310#M112327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-20T20:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: ROUNDDOWN with a minimum of 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143325#M112333</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies.&amp;nbsp; This is a bit more complex than I originally thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How is the hierarchy defined?&amp;nbsp; What are the parent, child, granchild items?&lt;/P&gt;&lt;P&gt;- Can you also show an example which displays the column names used, and the definitions of measures within your original measure "[10% Increase]"?&lt;/P&gt;&lt;P&gt;- Ah actually, this is a Calculated Column (and not a measure), correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 20:26:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143325#M112333</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-20T20:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: ROUNDDOWN with a minimum of 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143335#M112337</link>
      <description>&lt;P&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;10% Increase =
VAR new_ss = ROUNDDOWN ( [# New SS (LY)] * VALUES ( Increase_Target[NEW SS increase:] ), 0 )
RETURN
IF (ISBLANK (new_ss), BLANK(), MAX ( new_ss, 1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You expression is strange though. I assume this is a calculated column. VALUES returns a table of all unique values in the column referanced. I think you want to use something different there, like CALCULATE ( SUM(...&lt;BR /&gt;Maybe because of how your model is built you are getting lucky but this could be a source for breakage.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 20:31:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDDOWN-with-a-minimum-of-1/m-p/3143335#M112337</guid>
      <dc:creator>n8ball</dc:creator>
      <dc:date>2023-03-20T20:31:39Z</dc:date>
    </item>
  </channel>
</rss>

