<?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 One column, multiple data types in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4324321#M171683</link>
    <description>&lt;P&gt;Guys, good afternoon.&lt;/P&gt;&lt;P&gt;Would you know a way to format several types of data that are in a single column?&lt;/P&gt;&lt;P&gt;For example, I have a column to insert into a bar chart with the following types: monetary ($), percentage (%) and integers.&lt;/P&gt;&lt;P&gt;I've tried different ways but I haven't been successful, has anyone experienced this situation?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 16:42:52 GMT</pubDate>
    <dc:creator>hugo_barbara</dc:creator>
    <dc:date>2024-12-11T16:42:52Z</dc:date>
    <item>
      <title>One column, multiple data types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4324321#M171683</link>
      <description>&lt;P&gt;Guys, good afternoon.&lt;/P&gt;&lt;P&gt;Would you know a way to format several types of data that are in a single column?&lt;/P&gt;&lt;P&gt;For example, I have a column to insert into a bar chart with the following types: monetary ($), percentage (%) and integers.&lt;/P&gt;&lt;P&gt;I've tried different ways but I haven't been successful, has anyone experienced this situation?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 16:42:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4324321#M171683</guid>
      <dc:creator>hugo_barbara</dc:creator>
      <dc:date>2024-12-11T16:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: One column, multiple data types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4324379#M171688</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="333090" data-lia-user-login="hugo_barbara" class="lia-mention lia-mention-user"&gt;hugo_barbara&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can create a calculated column in DAX that formats the values as text based on their type try this for table visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Formatted Values = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;SWITCH(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;TRUE(),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'YourTable'[Type] = "Monetary", FORMAT('YourTable'[Value], "$#,##0.00"),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'YourTable'[Type] = "Percentage", FORMAT('YourTable'[Value], "0.00%"),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'YourTable'[Type] = "Integer", FORMAT('YourTable'[Value], "#,##0"),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;BLANK())&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 17:22:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4324379#M171688</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-12-11T17:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: One column, multiple data types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4325861#M171736</link>
      <description>&lt;P&gt;thanks for the help!&lt;BR /&gt;However, when applying the solution provided, I found that the data had a string type, would there be a way to leave it with a numeric type but with the same format as mentioned above?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 11:59:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-column-multiple-data-types/m-p/4325861#M171736</guid>
      <dc:creator>hugo_barbara</dc:creator>
      <dc:date>2024-12-12T11:59:18Z</dc:date>
    </item>
  </channel>
</rss>

