<?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: data type in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863351#M127361</link>
    <description>&lt;P&gt;This table before unpivot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;after unpivot&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to show data like this but show &lt;SPAN&gt;Decimal number&amp;nbsp; and Percentage number in the chart&lt;/SPAN&gt;&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;</description>
    <pubDate>Tue, 23 Apr 2024 19:18:45 GMT</pubDate>
    <dc:creator>MSAYED26</dc:creator>
    <dc:date>2024-04-23T19:18:45Z</dc:date>
    <item>
      <title>data type</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3856843#M127218</link>
      <description>&lt;P&gt;I have a Decimal number coulmns and Percentage number coulmns ,I want to unpivot coulmns in one coulmns with the same value of each column&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 14:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3856843#M127218</guid>
      <dc:creator>MSAYED26</dc:creator>
      <dc:date>2024-04-21T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: data type</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3856848#M127219</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445213" data-lia-user-login="MSAYED26" class="lia-mention lia-mention-user"&gt;MSAYED26&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 14:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3856848#M127219</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-04-21T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: data type</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3860895#M127306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, thanks for your concern about the problem, and i want to offer some more information for user to refer to.&lt;/P&gt;
&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445213" data-lia-user-login="MSAYED26" class="lia-mention lia-mention-user"&gt;MSAYED26&lt;/a&gt;&amp;nbsp;, based on your description, do you want to keep the original data type when unpivoting the column? if you want to achieve, it it better that implement this in power bi desktop by using measure or calculated column, becasuse when you set in power query , it will always return d&lt;SPAN&gt;ecimal number in power bi desktop.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so you can try the solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Original data &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;After unpivoting&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Apply it , then you can consider to create a measure.&lt;/P&gt;
&lt;P&gt;e.g&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
IF (
    MAX ( 'Table'[Attribute] ) = "%",
    FORMAT ( SUM ( 'Table'[Value] ), "percent" ),
    SUM ( 'Table'[Value] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 03:04:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3860895#M127306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-23T03:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: data type</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863351#M127361</link>
      <description>&lt;P&gt;This table before unpivot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;after unpivot&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to show data like this but show &lt;SPAN&gt;Decimal number&amp;nbsp; and Percentage number in the chart&lt;/SPAN&gt;&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;</description>
      <pubDate>Tue, 23 Apr 2024 19:18:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863351#M127361</guid>
      <dc:creator>MSAYED26</dc:creator>
      <dc:date>2024-04-23T19:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: data type</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863361#M127362</link>
      <description>&lt;P&gt;In Table is ok&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;but in column chart not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 19:23:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863361#M127362</guid>
      <dc:creator>MSAYED26</dc:creator>
      <dc:date>2024-04-23T19:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: data type</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863745#M127375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445213" data-lia-user-login="MSAYED26" class="lia-mention lia-mention-user"&gt;MSAYED26&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your quick reply, based on your description, you can refer to the following.&lt;/P&gt;
&lt;P&gt;I change the measure to the following.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(SUM('Table'[Value]))&lt;/LI-CODE&gt;
&lt;P&gt;Then create a new measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = IF(SELECTEDVALUE('Table'[Attribute])="%",FORMAT([Measure],"percent"),[Measure])&lt;/LI-CODE&gt;
&lt;P&gt;Then in column chart, put the measure to the y-axis, put the measure2 to data label.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;It can work.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 01:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/data-type/m-p/3863745#M127375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-24T01:18:17Z</dc:date>
    </item>
  </channel>
</rss>

