<?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 Format measure to showing ordinary numbers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4100059#M162705</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have very simple measure contains SUM of numbers. The result of this measure is standard number e.g. 1 2,3,4,....59,..... etc.&lt;/P&gt;&lt;P&gt;It is possible to recreate this measure to showing ordinary numbers like 1st, 2nd....21th etc?&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 11:03:04 GMT</pubDate>
    <dc:creator>lucie_rabochova</dc:creator>
    <dc:date>2024-08-14T11:03:04Z</dc:date>
    <item>
      <title>Format measure to showing ordinary numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4100059#M162705</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have very simple measure contains SUM of numbers. The result of this measure is standard number e.g. 1 2,3,4,....59,..... etc.&lt;/P&gt;&lt;P&gt;It is possible to recreate this measure to showing ordinary numbers like 1st, 2nd....21th etc?&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 11:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4100059#M162705</guid>
      <dc:creator>lucie_rabochova</dc:creator>
      <dc:date>2024-08-14T11:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Format measure to showing ordinary numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4100073#M162706</link>
      <description>&lt;P&gt;If you mean ordinal numbers then unfortunately there isnt an inbuilt function in DAX.However you can have a look at this article on possible ways on how to achieve it&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://gorilla.bi/power-bi/ordinal-numbers/" target="_blank"&gt;https://gorilla.bi/power-bi/ordinal-numbers/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 11:19:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4100073#M162706</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-08-14T11:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Format measure to showing ordinary numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4101593#M162755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="617908" data-lia-user-login="lucie_rabochova" class="lia-mention lia-mention-user"&gt;lucie_rabochova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your needs, I have created the following table.&lt;/P&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;Then you can use the following Dax to get the result you want:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ordinal Numbers = 
VAR _Last2Number = RIGHT( [Standard number], 2 )
VAR _LastNumber = RIGHT( [Standard number], 1 )
RETURN
    [Standard number]&amp;amp;SWITCH( TRUE( ),
        _Last2Number IN { "11", "12", "13" }, "th",
        _LastNumber = "1", "st",
        _LastNumber = "2", "nd",
        _LastNumber = "3", "rd",
        "th"
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 06:13:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4101593#M162755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-15T06:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format measure to showing ordinary numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4101644#M162757</link>
      <description>&lt;P&gt;Thanks a lot, it works perfect!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 06:38:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-measure-to-showing-ordinary-numbers/m-p/4101644#M162757</guid>
      <dc:creator>lucie_raboch</dc:creator>
      <dc:date>2024-08-15T06:38:31Z</dc:date>
    </item>
  </channel>
</rss>

